Skip to content

Commit 8b598a3

Browse files
author
Kevin D Smith
committed
Fix file reader
1 parent 5b768e7 commit 8b598a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
''' Install the SAS Scripting Wrapper for Analytics Transfer (SWAT) module '''
2020

2121
import glob
22+
import io
2223
import os
2324
from setuptools import setup, find_packages
2425

2526

2627
def get_file(fname):
27-
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), fname),
28-
encoding='utf8') as infile:
28+
with io.open(os.path.join(os.path.dirname(os.path.abspath(__file__)), fname),
29+
encoding='utf8') as infile:
2930
return infile.read()
3031

3132

0 commit comments

Comments
 (0)