fastcore 2.2.24__tar.gz → 2.2.25__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fastcore-2.2.24/fastcore.egg-info → fastcore-2.2.25}/PKG-INFO +1 -1
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/__init__.py +1 -1
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/_modidx.py +1 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/xml.py +7 -1
- {fastcore-2.2.24 → fastcore-2.2.25/fastcore.egg-info}/PKG-INFO +1 -1
- {fastcore-2.2.24 → fastcore-2.2.25}/CONTRIBUTING.md +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/LICENSE +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/README.md +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/aio.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/all.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/ansi.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/apisurface.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/basics.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/dispatch.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/docments.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/docscrape.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/editskill.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/foundation.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/funccall.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/imghdr.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/imports.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/meta.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/nb_imports.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/nbio.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/net.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/parallel.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/py2pyi.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/script.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/shutil.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/style.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/test.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/tools.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/transform.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/utils.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/xdg.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore/xtras.py +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore.egg-info/SOURCES.txt +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore.egg-info/dependency_links.txt +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore.egg-info/entry_points.txt +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore.egg-info/requires.txt +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/fastcore.egg-info/top_level.txt +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/pyproject.toml +0 -0
- {fastcore-2.2.24 → fastcore-2.2.25}/setup.cfg +0 -0
|
@@ -839,6 +839,7 @@ d = { 'settings': { 'branch': 'main',
|
|
|
839
839
|
'fastcore.xml.Safe': ('xml.html#safe', 'fastcore/xml.py'),
|
|
840
840
|
'fastcore.xml.Safe.__html__': ('xml.html#safe.__html__', 'fastcore/xml.py'),
|
|
841
841
|
'fastcore.xml.XML': ('xml.html#xml', 'fastcore/xml.py'),
|
|
842
|
+
'fastcore.xml.XML.__call__': ('xml.html#xml.__call__', 'fastcore/xml.py'),
|
|
842
843
|
'fastcore.xml.XML.__init__': ('xml.html#xml.__init__', 'fastcore/xml.py'),
|
|
843
844
|
'fastcore.xml.XML.__str__': ('xml.html#xml.__str__', 'fastcore/xml.py'),
|
|
844
845
|
'fastcore.xml.XML._child': ('xml.html#xml._child', 'fastcore/xml.py'),
|
|
@@ -319,7 +319,13 @@ class XML:
|
|
|
319
319
|
"A detached XML expression with fixed namespace bindings."
|
|
320
320
|
def __init__(self, tag, children, attrs, ns):
|
|
321
321
|
self.tag,self.attrs,self.ns = tag,attrs,ns
|
|
322
|
-
self.children =
|
|
322
|
+
self.children = ()
|
|
323
|
+
self(*children)
|
|
324
|
+
|
|
325
|
+
def __call__(self, *children):
|
|
326
|
+
"Append children and return this expression."
|
|
327
|
+
self.children += tuple(self._child(c) for c in _xml_flatten(children))
|
|
328
|
+
return self
|
|
323
329
|
|
|
324
330
|
def _child(self, child):
|
|
325
331
|
if isinstance(child, XML): return child
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|