X7ROOT File Manager
Current Path:
/opt/alt/python34/lib64/python3.4
opt
/
alt
/
python34
/
lib64
/
python3.4
/
ðŸ“
..
📄
__future__.py
(4.48 KB)
📄
__phello__.foo.py
(64 B)
ðŸ“
__pycache__
📄
_bootlocale.py
(1.27 KB)
📄
_collections_abc.py
(19.43 KB)
📄
_compat_pickle.py
(8.12 KB)
📄
_dummy_thread.py
(4.76 KB)
📄
_markupbase.py
(14.26 KB)
📄
_osx_support.py
(18.65 KB)
📄
_pyio.py
(72.16 KB)
📄
_sitebuiltins.py
(3.04 KB)
📄
_strptime.py
(21.54 KB)
📄
_sysconfigdata.py
(28.05 KB)
📄
_threading_local.py
(7.24 KB)
📄
_weakrefset.py
(5.57 KB)
📄
abc.py
(8.42 KB)
📄
aifc.py
(30.84 KB)
📄
antigravity.py
(475 B)
📄
argparse.py
(87.92 KB)
📄
ast.py
(11.75 KB)
📄
asynchat.py
(11.55 KB)
ðŸ“
asyncio
📄
asyncore.py
(20.51 KB)
📄
base64.py
(19.71 KB)
📄
bdb.py
(22.81 KB)
📄
binhex.py
(13.6 KB)
📄
bisect.py
(2.53 KB)
📄
bz2.py
(18.42 KB)
📄
cProfile.py
(5.2 KB)
📄
calendar.py
(22.4 KB)
📄
cgi.py
(35.1 KB)
📄
cgitb.py
(11.76 KB)
📄
chunk.py
(5.3 KB)
📄
cmd.py
(14.51 KB)
📄
code.py
(9.8 KB)
📄
codecs.py
(35.07 KB)
📄
codeop.py
(5.85 KB)
ðŸ“
collections
📄
colorsys.py
(3.97 KB)
📄
compileall.py
(9.39 KB)
ðŸ“
concurrent
ðŸ“
config-3.4m
📄
configparser.py
(48.53 KB)
📄
contextlib.py
(11.37 KB)
📄
copy.py
(8.79 KB)
📄
copyreg.py
(6.67 KB)
📄
crypt.py
(1.83 KB)
📄
csv.py
(15.81 KB)
ðŸ“
ctypes
ðŸ“
curses
📄
datetime.py
(74.03 KB)
ðŸ“
dbm
📄
decimal.py
(223.33 KB)
📄
difflib.py
(79.77 KB)
📄
dis.py
(16.76 KB)
ðŸ“
distutils
📄
doctest.py
(102.04 KB)
📄
dummy_threading.py
(2.75 KB)
ðŸ“
email
ðŸ“
encodings
ðŸ“
ensurepip
📄
enum.py
(21.03 KB)
📄
filecmp.py
(9.6 KB)
📄
fileinput.py
(14.52 KB)
📄
fnmatch.py
(3.09 KB)
📄
formatter.py
(14.82 KB)
📄
fractions.py
(22.66 KB)
📄
ftplib.py
(37.63 KB)
📄
functools.py
(27.84 KB)
📄
genericpath.py
(3.79 KB)
📄
getopt.py
(7.31 KB)
📄
getpass.py
(5.93 KB)
📄
gettext.py
(20.28 KB)
📄
glob.py
(3.38 KB)
📄
gzip.py
(23.74 KB)
📄
hashlib.py
(9.62 KB)
📄
heapq.py
(17.58 KB)
📄
hmac.py
(4.94 KB)
ðŸ“
html
ðŸ“
http
ðŸ“
idlelib
📄
imaplib.py
(49.09 KB)
📄
imghdr.py
(3.45 KB)
📄
imp.py
(9.75 KB)
ðŸ“
importlib
📄
inspect.py
(102.19 KB)
📄
io.py
(3.32 KB)
📄
ipaddress.py
(69.92 KB)
ðŸ“
json
📄
keyword.py
(2.17 KB)
ðŸ“
lib-dynload
ðŸ“
lib2to3
📄
linecache.py
(3.86 KB)
📄
locale.py
(72.78 KB)
ðŸ“
logging
📄
lzma.py
(18.92 KB)
📄
macpath.py
(5.49 KB)
📄
macurl2path.py
(2.67 KB)
📄
mailbox.py
(76.54 KB)
📄
mailcap.py
(7.26 KB)
📄
mimetypes.py
(20.29 KB)
📄
modulefinder.py
(22.87 KB)
ðŸ“
multiprocessing
📄
netrc.py
(5.61 KB)
📄
nntplib.py
(42.07 KB)
📄
ntpath.py
(20 KB)
📄
nturl2path.py
(2.39 KB)
📄
numbers.py
(10 KB)
📄
opcode.py
(5.31 KB)
📄
operator.py
(8.98 KB)
📄
optparse.py
(58.93 KB)
📄
os.py
(33.09 KB)
📄
pathlib.py
(41.47 KB)
📄
pdb.py
(59.56 KB)
📄
pickle.py
(54.68 KB)
📄
pickletools.py
(89.61 KB)
📄
pipes.py
(8.71 KB)
📄
pkgutil.py
(20.72 KB)
ðŸ“
plat-linux
📄
platform.py
(45.67 KB)
📄
plistlib.py
(31.05 KB)
📄
poplib.py
(13.98 KB)
📄
posixpath.py
(13.13 KB)
📄
pprint.py
(14.57 KB)
📄
profile.py
(21.52 KB)
📄
pstats.py
(25.7 KB)
📄
pty.py
(4.65 KB)
📄
py_compile.py
(6.94 KB)
📄
pyclbr.py
(13.2 KB)
📄
pydoc.py
(100.6 KB)
ðŸ“
pydoc_data
📄
queue.py
(8.63 KB)
📄
quopri.py
(7.09 KB)
📄
random.py
(25.47 KB)
📄
re.py
(15.24 KB)
📄
reprlib.py
(4.99 KB)
📄
rlcompleter.py
(5.93 KB)
📄
runpy.py
(10.56 KB)
📄
sched.py
(6.21 KB)
📄
selectors.py
(16.7 KB)
📄
shelve.py
(8.33 KB)
📄
shlex.py
(11.28 KB)
📄
shutil.py
(38.97 KB)
ðŸ“
site-packages
📄
site.py
(21.05 KB)
📄
smtpd.py
(29.29 KB)
📄
smtplib.py
(38.06 KB)
📄
sndhdr.py
(6.11 KB)
📄
socket.py
(18.62 KB)
📄
socketserver.py
(23.8 KB)
ðŸ“
sqlite3
📄
sre_compile.py
(19.44 KB)
📄
sre_constants.py
(7.1 KB)
📄
sre_parse.py
(30.69 KB)
📄
ssl.py
(33.93 KB)
📄
stat.py
(4.3 KB)
📄
statistics.py
(19.1 KB)
📄
string.py
(11.18 KB)
📄
stringprep.py
(12.61 KB)
📄
struct.py
(257 B)
📄
subprocess.py
(63.04 KB)
📄
sunau.py
(17.67 KB)
📄
symbol.py
(2 KB)
📄
symtable.py
(7.23 KB)
📄
sysconfig.py
(24.05 KB)
📄
tabnanny.py
(11.14 KB)
📄
tarfile.py
(89.41 KB)
📄
telnetlib.py
(22.53 KB)
📄
tempfile.py
(22 KB)
ðŸ“
test
📄
textwrap.py
(18.83 KB)
📄
this.py
(1003 B)
📄
threading.py
(47.66 KB)
📄
timeit.py
(11.69 KB)
📄
token.py
(2.96 KB)
📄
tokenize.py
(25 KB)
📄
trace.py
(30.75 KB)
📄
traceback.py
(10.91 KB)
📄
tracemalloc.py
(15.28 KB)
📄
tty.py
(879 B)
📄
types.py
(5.28 KB)
ðŸ“
unittest
ðŸ“
urllib
📄
uu.py
(6.61 KB)
📄
uuid.py
(23.17 KB)
ðŸ“
venv
📄
warnings.py
(13.97 KB)
📄
wave.py
(17.27 KB)
📄
weakref.py
(18.93 KB)
📄
webbrowser.py
(20.93 KB)
ðŸ“
wsgiref
📄
xdrlib.py
(5.77 KB)
ðŸ“
xml
ðŸ“
xmlrpc
📄
zipfile.py
(66.94 KB)
Editing: fnmatch.py
"""Filename matching with shell patterns. fnmatch(FILENAME, PATTERN) matches according to the local convention. fnmatchcase(FILENAME, PATTERN) always takes case in account. The functions operate by translating the pattern into a regular expression. They cache the compiled regular expressions for speed. The function translate(PATTERN) returns a regular expression corresponding to PATTERN. (It does not compile it.) """ import os import posixpath import re import functools __all__ = ["filter", "fnmatch", "fnmatchcase", "translate"] def fnmatch(name, pat): """Test whether FILENAME matches PATTERN. Patterns are Unix shell style: * matches everything ? matches any single character [seq] matches any character in seq [!seq] matches any char not in seq An initial period in FILENAME is not special. Both FILENAME and PATTERN are first case-normalized if the operating system requires it. If you don't want this, use fnmatchcase(FILENAME, PATTERN). """ name = os.path.normcase(name) pat = os.path.normcase(pat) return fnmatchcase(name, pat) @functools.lru_cache(maxsize=256, typed=True) def _compile_pattern(pat): if isinstance(pat, bytes): pat_str = str(pat, 'ISO-8859-1') res_str = translate(pat_str) res = bytes(res_str, 'ISO-8859-1') else: res = translate(pat) return re.compile(res).match def filter(names, pat): """Return the subset of the list NAMES that match PAT.""" result = [] pat = os.path.normcase(pat) match = _compile_pattern(pat) if os.path is posixpath: # normcase on posix is NOP. Optimize it away from the loop. for name in names: if match(name): result.append(name) else: for name in names: if match(os.path.normcase(name)): result.append(name) return result def fnmatchcase(name, pat): """Test whether FILENAME matches PATTERN, including case. This is a version of fnmatch() which doesn't case-normalize its arguments. """ match = _compile_pattern(pat) return match(name) is not None def translate(pat): """Translate a shell PATTERN to a regular expression. There is no way to quote meta-characters. """ i, n = 0, len(pat) res = '' while i < n: c = pat[i] i = i+1 if c == '*': res = res + '.*' elif c == '?': res = res + '.' elif c == '[': j = i if j < n and pat[j] == '!': j = j+1 if j < n and pat[j] == ']': j = j+1 while j < n and pat[j] != ']': j = j+1 if j >= n: res = res + '\\[' else: stuff = pat[i:j].replace('\\','\\\\') i = j+1 if stuff[0] == '!': stuff = '^' + stuff[1:] elif stuff[0] == '^': stuff = '\\' + stuff res = '%s[%s]' % (res, stuff) else: res = res + re.escape(c) return res + '\Z(?ms)'
Upload File
Create Folder