Browse code

don't enforce encoding on file open

Hanno Böck authored on09/01/2017 17:45:10
Showing1 changed files
... ...
@@ -152,7 +152,7 @@ for fdir in args:
152 152
                 if filename == item['file']:
153 153
                     mfile = os.path.join(root, filename)
154 154
                     try:
155
-                      file = open(mfile,encoding="iso-8859-15")
155
+                      file = open(mfile)
156 156
                     except:
157 157
                       continue
158 158
                     filestr = file.read()