eric6/UI/BrowserModel.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
--- a/eric6/UI/BrowserModel.py	Sat Aug 31 12:29:57 2019 +0200
+++ b/eric6/UI/BrowserModel.py	Sat Aug 31 12:58:11 2019 +0200
@@ -8,13 +8,8 @@
 """
 
 from __future__ import unicode_literals
-try:
-    str = unicode
-except NameError:
-    pass
 
 import os
-import sys
 import fnmatch
 import json
 
@@ -1149,7 +1144,7 @@
         elif self.isJavaScriptFile():
             pixName = "fileJavascript.png"
             self._populated = False
-            self._lazyPopulation = sys.version_info[0] == 3
+            self._lazyPopulation = True
             self._moduleName = os.path.basename(finfo)
         else:
             pixName = "fileMisc.png"

eric ide

mercurial