Remove encoding checks for eft import (#1459)

This commit is contained in:
blitzmann
2018-03-03 00:50:56 -05:00
parent 99982aa547
commit d5ca14ca52

View File

@@ -774,11 +774,6 @@ class Port(object):
except:
return [] # empty list is expected
# If client didn't take care of encoding file contents into Unicode,
# do it using fallback encoding ourselves
if isinstance(contents, str):
contents = str(contents, locale.getpreferredencoding())
fits = [] # List for fits
fitIndices = [] # List for starting line numbers for each fit
lines = re.split('[\n\r]+', contents) # Separate string into lines