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 /
past /
types /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
879
B
-rw-r--r--
2019-10-31 04:04
__init__.pyc
972
B
-rw-r--r--
2020-01-24 15:25
__init__.pyo
972
B
-rw-r--r--
2020-01-24 15:25
basestring.py
728
B
-rw-r--r--
2019-10-31 04:04
basestring.pyc
1.5
KB
-rw-r--r--
2020-01-24 15:25
basestring.pyo
1.5
KB
-rw-r--r--
2020-01-24 15:25
olddict.py
2.66
KB
-rw-r--r--
2019-10-31 04:04
olddict.pyc
2.72
KB
-rw-r--r--
2020-01-24 15:25
olddict.pyo
2.72
KB
-rw-r--r--
2020-01-24 15:25
oldstr.py
4.23
KB
-rw-r--r--
2019-10-31 04:04
oldstr.pyc
3.38
KB
-rw-r--r--
2020-01-24 15:25
oldstr.pyo
3.31
KB
-rw-r--r--
2020-01-24 15:25
Save
Rename
""" An implementation of the basestring type for Python 3 Example use: >>> s = b'abc' >>> assert isinstance(s, basestring) >>> from past.types import str as oldstr >>> s2 = oldstr(b'abc') >>> assert isinstance(s2, basestring) """ import sys from past.utils import with_metaclass, PY2 if PY2: str = unicode ver = sys.version_info[:2] class BaseBaseString(type): def __instancecheck__(cls, instance): return isinstance(instance, (bytes, str)) def __subclasshook__(cls, thing): # TODO: What should go here? raise NotImplemented class basestring(with_metaclass(BaseBaseString)): """ A minimal backport of the Python 2 basestring type to Py3 """ __all__ = ['basestring']