eric6/UI/FindFileDialog.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 7139
9bb36ec2d1b5
child 7229
53054eb5b15a
--- a/eric6/UI/FindFileDialog.py	Sat Aug 31 12:29:57 2019 +0200
+++ b/eric6/UI/FindFileDialog.py	Sat Aug 31 12:58:11 2019 +0200
@@ -11,7 +11,6 @@
 
 import os
 import re
-import sys
 
 from PyQt5.QtCore import pyqtSignal, Qt, pyqtSlot
 from PyQt5.QtGui import QCursor
@@ -387,10 +386,7 @@
             txt = re.escape(ct)
         if wo:
             txt = "\\b{0}\\b".format(txt)
-        if sys.version_info[0] == 2:
-            flags = re.UNICODE | re.LOCALE
-        else:
-            flags = re.UNICODE
+        flags = re.UNICODE
         if not cs:
             flags |= re.IGNORECASE
         try:

eric ide

mercurial