eric6/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7256
4ef3b78ebb4e
diff -r 960850ec284c -r a22eee00b052 eric6/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py
--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py	Sat Aug 31 12:29:57 2019 +0200
+++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/jsCheckSyntax.py	Sat Aug 31 12:58:11 2019 +0200
@@ -53,13 +53,6 @@
 
     if codestring and codestring[-1] != '\n':
         codestring = codestring + '\n'
-
-    # Check type for py2: if not str it's unicode
-#    if sys.version_info[0] == 2:
-#        try:
-#            codestring = codestring.encode('utf-8')
-#        except UnicodeError:
-#            pass
     
     return codestring
 

eric ide

mercurial