Skip to content

Commit

Permalink
Merge pull request #1226 from harshitbansal05/fix-u-mode-deprecation
Browse files Browse the repository at this point in the history
Change read mode to remove deprecation warning

io.open(arg, 'rU') to io.open(arg, 'r')
  • Loading branch information
henrykironde committed Feb 3, 2019
2 parents 8095858 + 4d1341d commit b5a34a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retriever/lib/engine_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def file_2list(input_file):
input_file = os.path.normpath(input_file)

if sys.version_info >= (3, 0, 0):
input_obj = io.open(input_file, 'rU')
input_obj = io.open(input_file, 'r')
else:
input_obj = io.open(input_file, encoding=ENCODING)

Expand Down

0 comments on commit b5a34a7

Please sign in to comment.