From d5ca14ca52d280c4422050909a9ddb6a8d74e6be Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 3 Mar 2018 00:50:56 -0500 Subject: [PATCH] Remove encoding checks for eft import (#1459) --- service/port.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/service/port.py b/service/port.py index f6afd51d1..aa84cb59a 100644 --- a/service/port.py +++ b/service/port.py @@ -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