Skip to content

Commit 6d9db4e

Browse files
committed
Fixed open for py27 compat with encodings
1 parent 872c808 commit 6d9db4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exa/core/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def lines_from_file(path, as_interned=False, encoding=None):
444444
strings (list): File line list
445445
"""
446446
lines = None
447-
with open(path, encoding=encoding) as f:
447+
with io.open(path, encoding=encoding) as f:
448448
if as_interned:
449449
lines = [sys.intern(line) for line in f.read().splitlines()]
450450
else:

0 commit comments

Comments
 (0)