fastcore 2.2.34__tar.gz → 2.2.35__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.34/fastcore.egg-info → fastcore-2.2.35}/PKG-INFO +1 -1
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/__init__.py +1 -1
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/xtras.py +1 -1
- {fastcore-2.2.34 → fastcore-2.2.35/fastcore.egg-info}/PKG-INFO +1 -1
- {fastcore-2.2.34 → fastcore-2.2.35}/CONTRIBUTING.md +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/LICENSE +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/README.md +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/_modidx.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/aio.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/all.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/ansi.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/apisurface.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/basics.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/dispatch.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/docments.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/docscrape.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/editskill.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/foundation.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/funccall.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/imghdr.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/imports.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/meta.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/nb_imports.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/nbio.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/net.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/parallel.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/py2pyi.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/script.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/shutil.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/style.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/test.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/tools.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/transform.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/utils.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/xdg.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore/xml.py +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore.egg-info/SOURCES.txt +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore.egg-info/dependency_links.txt +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore.egg-info/entry_points.txt +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore.egg-info/requires.txt +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/fastcore.egg-info/top_level.txt +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/pyproject.toml +0 -0
- {fastcore-2.2.34 → fastcore-2.2.35}/setup.cfg +0 -0
|
@@ -259,7 +259,7 @@ def detect_mime(data):
|
|
|
259
259
|
from fastcore import imghdr
|
|
260
260
|
for (sig,pos),mime in _sigs.items():
|
|
261
261
|
if data[pos:pos+len(sig)]==sig and (res := mime(data) if callable(mime) else mime): return res
|
|
262
|
-
return mimetypes.
|
|
262
|
+
return mimetypes.guess_type(f'x.{imghdr.what(None, h=data)}', strict=False)[0]
|
|
263
263
|
|
|
264
264
|
# %% ../nbs/03_xtras.ipynb #f856746a
|
|
265
265
|
def bunzip(fn):
|
|
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
|
|
File without changes
|