Skip to content

Commit

Permalink
fix tests for python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cahytinne committed Jul 31, 2015
1 parent 32d109f commit 495c159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atramhasis/scripts/import_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def file_to_csv_provider(input_file):
Create CSV provider from the input file
'''
input_name, input_ext = os.path.splitext(os.path.basename(input_file))
with open(input_file, "rb") as ifile:
with open(input_file, "r") as ifile:
reader = csv.reader(ifile)
return SimpleCsvProvider(
{'id': input_name.upper()},
Expand All @@ -55,7 +55,7 @@ def file_to_json_provider(input_file):
Create Dictionary provider from the input file
'''
input_name, input_ext = os.path.splitext(os.path.basename(input_file))
with open(input_file, 'rb') as data_file:
with open(input_file, 'r') as data_file:
dictionary = json.load(data_file)
return DictionaryProvider(
{'id': input_name.upper()},
Expand Down

0 comments on commit 495c159

Please sign in to comment.