Linux newlinux5.pouyasazan.org 3.10.0-962.3.2.lve1.5.60.el7.x86_64 #1 SMP Fri Jul 23 07:07:00 EDT 2021 x86_64
LiteSpeed
Server IP : 88.99.66.243 & Your IP : 216.73.216.178
Domains :
Cant Read [ /etc/named.conf ]
User : wdbbsgxf
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
libpasteurize /
fixes /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
3.63
KB
-rw-r--r--
2019-10-31 04:04
__init__.pyc
961
B
-rw-r--r--
2020-01-24 15:25
__init__.pyo
961
B
-rw-r--r--
2020-01-24 15:25
feature_base.py
1.68
KB
-rw-r--r--
2019-10-31 04:04
feature_base.pyc
2.81
KB
-rw-r--r--
2020-01-24 15:25
feature_base.pyo
2.81
KB
-rw-r--r--
2020-01-24 15:25
fix_add_all__future__imports.py
676
B
-rw-r--r--
2019-10-31 04:04
fix_add_all__future__imports.pyc
1.24
KB
-rw-r--r--
2020-01-24 15:25
fix_add_all__future__imports.pyo
1.24
KB
-rw-r--r--
2020-01-24 15:25
fix_add_all_future_builtins.py
1.24
KB
-rw-r--r--
2019-10-31 04:04
fix_add_all_future_builtins.pyc
1.36
KB
-rw-r--r--
2020-01-24 15:25
fix_add_all_future_builtins.pyo
1.36
KB
-rw-r--r--
2020-01-24 15:25
fix_add_future_standard_library_import.py
663
B
-rw-r--r--
2019-10-31 04:04
fix_add_future_standard_library_import.pyc
1.17
KB
-rw-r--r--
2020-01-24 15:25
fix_add_future_standard_library_import.pyo
1.17
KB
-rw-r--r--
2020-01-24 15:25
fix_annotations.py
1.54
KB
-rw-r--r--
2019-10-31 04:04
fix_annotations.pyc
2.14
KB
-rw-r--r--
2020-01-24 15:25
fix_annotations.pyo
2.04
KB
-rw-r--r--
2020-01-24 15:25
fix_division.py
904
B
-rw-r--r--
2019-10-31 04:04
fix_division.pyc
1.62
KB
-rw-r--r--
2020-01-24 15:25
fix_division.pyo
1.62
KB
-rw-r--r--
2020-01-24 15:25
fix_features.py
2.61
KB
-rw-r--r--
2019-10-31 04:04
fix_features.pyc
3.27
KB
-rw-r--r--
2020-01-24 15:25
fix_features.pyo
3.27
KB
-rw-r--r--
2020-01-24 15:25
fix_fullargspec.py
438
B
-rw-r--r--
2019-10-31 04:04
fix_fullargspec.pyc
1
KB
-rw-r--r--
2020-01-24 15:25
fix_fullargspec.pyo
1
KB
-rw-r--r--
2020-01-24 15:25
fix_future_builtins.py
1.42
KB
-rw-r--r--
2019-10-31 04:04
fix_future_builtins.pyc
1.68
KB
-rw-r--r--
2020-01-24 15:25
fix_future_builtins.pyo
1.68
KB
-rw-r--r--
2020-01-24 15:25
fix_getcwd.py
873
B
-rw-r--r--
2019-10-31 04:04
fix_getcwd.pyc
1.28
KB
-rw-r--r--
2020-01-24 15:25
fix_getcwd.pyo
1.28
KB
-rw-r--r--
2020-01-24 15:25
fix_imports.py
4.83
KB
-rw-r--r--
2019-10-31 04:04
fix_imports.pyc
4.25
KB
-rw-r--r--
2020-01-24 15:25
fix_imports.pyo
4.25
KB
-rw-r--r--
2020-01-24 15:25
fix_imports2.py
8.38
KB
-rw-r--r--
2019-10-31 04:04
fix_imports2.pyc
10.02
KB
-rw-r--r--
2020-01-24 15:25
fix_imports2.pyo
10.02
KB
-rw-r--r--
2020-01-24 15:25
fix_kwargs.py
5.85
KB
-rw-r--r--
2019-10-31 04:04
fix_kwargs.pyc
4.6
KB
-rw-r--r--
2020-01-24 15:25
fix_kwargs.pyo
4.49
KB
-rw-r--r--
2020-01-24 15:25
fix_memoryview.py
551
B
-rw-r--r--
2019-10-31 04:04
fix_memoryview.pyc
1.08
KB
-rw-r--r--
2020-01-24 15:25
fix_memoryview.pyo
1.08
KB
-rw-r--r--
2020-01-24 15:25
fix_metaclass.py
3.18
KB
-rw-r--r--
2019-10-31 04:04
fix_metaclass.pyc
2.55
KB
-rw-r--r--
2020-01-24 15:25
fix_metaclass.pyo
2.55
KB
-rw-r--r--
2020-01-24 15:25
fix_newstyle.py
888
B
-rw-r--r--
2019-10-31 04:04
fix_newstyle.pyc
1.49
KB
-rw-r--r--
2020-01-24 15:25
fix_newstyle.pyo
1.49
KB
-rw-r--r--
2020-01-24 15:25
fix_next.py
1.2
KB
-rw-r--r--
2019-10-31 04:04
fix_next.pyc
1.81
KB
-rw-r--r--
2020-01-24 15:25
fix_next.pyo
1.78
KB
-rw-r--r--
2020-01-24 15:25
fix_printfunction.py
401
B
-rw-r--r--
2019-10-31 04:04
fix_printfunction.pyc
952
B
-rw-r--r--
2020-01-24 15:25
fix_printfunction.pyo
952
B
-rw-r--r--
2020-01-24 15:25
fix_raise.py
1.07
KB
-rw-r--r--
2019-10-31 04:04
fix_raise.pyc
1.62
KB
-rw-r--r--
2020-01-24 15:25
fix_raise.pyo
1.62
KB
-rw-r--r--
2020-01-24 15:25
fix_raise_.py
1.2
KB
-rw-r--r--
2019-10-31 04:04
fix_raise_.pyc
1.75
KB
-rw-r--r--
2020-01-24 15:25
fix_raise_.pyo
1.75
KB
-rw-r--r--
2020-01-24 15:25
fix_throw.py
835
B
-rw-r--r--
2019-10-31 04:04
fix_throw.pyc
1.42
KB
-rw-r--r--
2020-01-24 15:25
fix_throw.pyo
1.42
KB
-rw-r--r--
2020-01-24 15:25
fix_unpacking.py
5.81
KB
-rw-r--r--
2019-10-31 04:04
fix_unpacking.pyc
6.09
KB
-rw-r--r--
2020-01-24 15:25
fix_unpacking.pyo
6.09
KB
-rw-r--r--
2020-01-24 15:25
Save
Rename
u""" Fixer for complicated imports """ from lib2to3 import fixer_base from lib2to3.fixer_util import Name, String, FromImport, Newline, Comma from libfuturize.fixer_util import touch_import_top TK_BASE_NAMES = (u'ACTIVE', u'ALL', u'ANCHOR', u'ARC',u'BASELINE', u'BEVEL', u'BOTH', u'BOTTOM', u'BROWSE', u'BUTT', u'CASCADE', u'CENTER', u'CHAR', u'CHECKBUTTON', u'CHORD', u'COMMAND', u'CURRENT', u'DISABLED', u'DOTBOX', u'E', u'END', u'EW', u'EXCEPTION', u'EXTENDED', u'FALSE', u'FIRST', u'FLAT', u'GROOVE', u'HIDDEN', u'HORIZONTAL', u'INSERT', u'INSIDE', u'LAST', u'LEFT', u'MITER', u'MOVETO', u'MULTIPLE', u'N', u'NE', u'NO', u'NONE', u'NORMAL', u'NS', u'NSEW', u'NUMERIC', u'NW', u'OFF', u'ON', u'OUTSIDE', u'PAGES', u'PIESLICE', u'PROJECTING', u'RADIOBUTTON', u'RAISED', u'READABLE', u'RIDGE', u'RIGHT', u'ROUND', u'S', u'SCROLL', u'SE', u'SEL', u'SEL_FIRST', u'SEL_LAST', u'SEPARATOR', u'SINGLE', u'SOLID', u'SUNKEN', u'SW', u'StringTypes', u'TOP', u'TRUE', u'TclVersion', u'TkVersion', u'UNDERLINE', u'UNITS', u'VERTICAL', u'W', u'WORD', u'WRITABLE', u'X', u'Y', u'YES', u'wantobjects') PY2MODULES = { u'urllib2' : ( u'AbstractBasicAuthHandler', u'AbstractDigestAuthHandler', u'AbstractHTTPHandler', u'BaseHandler', u'CacheFTPHandler', u'FTPHandler', u'FileHandler', u'HTTPBasicAuthHandler', u'HTTPCookieProcessor', u'HTTPDefaultErrorHandler', u'HTTPDigestAuthHandler', u'HTTPError', u'HTTPErrorProcessor', u'HTTPHandler', u'HTTPPasswordMgr', u'HTTPPasswordMgrWithDefaultRealm', u'HTTPRedirectHandler', u'HTTPSHandler', u'OpenerDirector', u'ProxyBasicAuthHandler', u'ProxyDigestAuthHandler', u'ProxyHandler', u'Request', u'StringIO', u'URLError', u'UnknownHandler', u'addinfourl', u'build_opener', u'install_opener', u'parse_http_list', u'parse_keqv_list', u'randombytes', u'request_host', u'urlopen'), u'urllib' : ( u'ContentTooShortError', u'FancyURLopener',u'URLopener', u'basejoin', u'ftperrors', u'getproxies', u'getproxies_environment', u'localhost', u'pathname2url', u'quote', u'quote_plus', u'splitattr', u'splithost', u'splitnport', u'splitpasswd', u'splitport', u'splitquery', u'splittag', u'splittype', u'splituser', u'splitvalue', u'thishost', u'unquote', u'unquote_plus', u'unwrap', u'url2pathname', u'urlcleanup', u'urlencode', u'urlopen', u'urlretrieve',), u'urlparse' : ( u'parse_qs', u'parse_qsl', u'urldefrag', u'urljoin', u'urlparse', u'urlsplit', u'urlunparse', u'urlunsplit'), u'dbm' : ( u'ndbm', u'gnu', u'dumb'), u'anydbm' : ( u'error', u'open'), u'whichdb' : ( u'whichdb',), u'BaseHTTPServer' : ( u'BaseHTTPRequestHandler', u'HTTPServer'), u'CGIHTTPServer' : ( u'CGIHTTPRequestHandler',), u'SimpleHTTPServer' : ( u'SimpleHTTPRequestHandler',), u'FileDialog' : TK_BASE_NAMES + ( u'FileDialog', u'LoadFileDialog', u'SaveFileDialog', u'dialogstates', u'test'), u'tkFileDialog' : ( u'Directory', u'Open', u'SaveAs', u'_Dialog', u'askdirectory', u'askopenfile', u'askopenfilename', u'askopenfilenames', u'askopenfiles', u'asksaveasfile', u'asksaveasfilename'), u'SimpleDialog' : TK_BASE_NAMES + ( u'SimpleDialog',), u'tkSimpleDialog' : TK_BASE_NAMES + ( u'askfloat', u'askinteger', u'askstring', u'Dialog'), u'SimpleXMLRPCServer' : ( u'CGIXMLRPCRequestHandler', u'SimpleXMLRPCDispatcher', u'SimpleXMLRPCRequestHandler', u'SimpleXMLRPCServer', u'list_public_methods', u'remove_duplicates', u'resolve_dotted_attribute'), u'DocXMLRPCServer' : ( u'DocCGIXMLRPCRequestHandler', u'DocXMLRPCRequestHandler', u'DocXMLRPCServer', u'ServerHTMLDoc',u'XMLRPCDocGenerator'), } MAPPING = { u'urllib.request' : (u'urllib2', u'urllib'), u'urllib.error' : (u'urllib2', u'urllib'), u'urllib.parse' : (u'urllib2', u'urllib', u'urlparse'), u'dbm.__init__' : (u'anydbm', u'whichdb'), u'http.server' : (u'CGIHTTPServer', u'SimpleHTTPServer', u'BaseHTTPServer'), u'tkinter.filedialog' : (u'tkFileDialog', u'FileDialog'), u'tkinter.simpledialog' : (u'tkSimpleDialog', u'SimpleDialog'), u'xmlrpc.server' : (u'DocXMLRPCServer', u'SimpleXMLRPCServer'), } # helps match 'http', as in 'from http.server import ...' simple_name = u"name='%s'" # helps match 'server', as in 'from http.server import ...' simple_attr = u"attr='%s'" # helps match 'HTTPServer', as in 'from http.server import HTTPServer' simple_using = u"using='%s'" # helps match 'urllib.request', as in 'import urllib.request' dotted_name = u"dotted_name=dotted_name< %s '.' %s >" # helps match 'http.server', as in 'http.server.HTTPServer(...)' power_twoname = u"pow=power< %s trailer< '.' %s > trailer< '.' using=any > any* >" # helps match 'dbm.whichdb', as in 'dbm.whichdb(...)' power_onename = u"pow=power< %s trailer< '.' using=any > any* >" # helps match 'from http.server import HTTPServer' # also helps match 'from http.server import HTTPServer, SimpleHTTPRequestHandler' # also helps match 'from http.server import *' from_import = u"from_import=import_from< 'from' %s 'import' (import_as_name< using=any 'as' renamed=any> | in_list=import_as_names< using=any* > | using='*' | using=NAME) >" # helps match 'import urllib.request' name_import = u"name_import=import_name< 'import' (%s | in_list=dotted_as_names< imp_list=any* >) >" ############# # WON'T FIX # ############# # helps match 'import urllib.request as name' name_import_rename = u"name_import_rename=dotted_as_name< %s 'as' renamed=any >" # helps match 'from http import server' from_import_rename = u"from_import_rename=import_from< 'from' %s 'import' (%s | import_as_name< %s 'as' renamed=any > | in_list=import_as_names< any* (%s | import_as_name< %s 'as' renamed=any >) any* >) >" def all_modules_subpattern(): u""" Builds a pattern for all toplevel names (urllib, http, etc) """ names_dot_attrs = [mod.split(u".") for mod in MAPPING] ret = u"( " + u" | ".join([dotted_name % (simple_name % (mod[0]), simple_attr % (mod[1])) for mod in names_dot_attrs]) ret += u" | " ret += u" | ".join([simple_name % (mod[0]) for mod in names_dot_attrs if mod[1] == u"__init__"]) + u" )" return ret def build_import_pattern(mapping1, mapping2): u""" mapping1: A dict mapping py3k modules to all possible py2k replacements mapping2: A dict mapping py2k modules to the things they do This builds a HUGE pattern to match all ways that things can be imported """ # py3k: urllib.request, py2k: ('urllib2', 'urllib') yield from_import % (all_modules_subpattern()) for py3k, py2k in mapping1.items(): name, attr = py3k.split(u'.') s_name = simple_name % (name) s_attr = simple_attr % (attr) d_name = dotted_name % (s_name, s_attr) yield name_import % (d_name) yield power_twoname % (s_name, s_attr) if attr == u'__init__': yield name_import % (s_name) yield power_onename % (s_name) yield name_import_rename % (d_name) yield from_import_rename % (s_name, s_attr, s_attr, s_attr, s_attr) class FixImports2(fixer_base.BaseFix): run_order = 4 PATTERN = u" | \n".join(build_import_pattern(MAPPING, PY2MODULES)) def transform(self, node, results): touch_import_top(u'future', u'standard_library', node)