File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333import os
3434import re
3535import rlcompleter
36- import sys
3736from six .moves import range , builtins
3837from six import string_types , iteritems
3938
@@ -210,7 +209,7 @@ class FilenameCompletion(BaseCompletionType):
210209 def __init__ (self , mode = SIMPLE ):
211210 super (FilenameCompletion , self ).__init__ (False , mode )
212211
213- if sys . version_info [: 2 ] >= ( 3 , 4 ) :
212+ if py3 :
214213 def safe_glob (self , pathname ):
215214 return glob .iglob (glob .escape (pathname ) + '*' )
216215 else :
Original file line number Diff line number Diff line change 9999 unicode = str
100100
101101
102- if sys . version_info >= ( 3 , 4 ) :
102+ if py3 :
103103 def is_main_thread ():
104104 return threading .main_thread () == threading .current_thread ()
105105else :
Original file line number Diff line number Diff line change 3535from warnings import catch_warnings
3636from six .moves import filter
3737
38- if sys . version_info [ 0 ] == 3 and sys . version_info [ 1 ] >= 3 :
38+ if py3 :
3939 import importlib .machinery
4040 SUFFIXES = importlib .machinery .all_suffixes ()
4141else :
You can’t perform that action at this time.
0 commit comments