typedparser 0.33.2__tar.gz → 0.33.4__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.
- {typedparser-0.33.2 → typedparser-0.33.4}/PKG-INFO +1 -1
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser/__init__.py +1 -1
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser/import_from_source_copy.py +15 -1
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser.egg-info/PKG-INFO +1 -1
- {typedparser-0.33.2 → typedparser-0.33.4}/LICENSE +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/README.md +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/pyproject.toml +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/requirements.txt +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/setup.cfg +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser/_typedattr.py +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser/_typedparser.py +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser/custom_format.py +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser/funcs.py +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser/objects.py +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser.egg-info/SOURCES.txt +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser.egg-info/dependency_links.txt +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser.egg-info/requires.txt +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser.egg-info/top_level.txt +0 -0
- {typedparser-0.33.2 → typedparser-0.33.4}/src/typedparser.egg-info/zip-safe +0 -0
|
@@ -10,12 +10,26 @@ from importlib import util as import_util
|
|
|
10
10
|
from importlib.machinery import ModuleSpec
|
|
11
11
|
from os import path
|
|
12
12
|
from pkgutil import iter_modules
|
|
13
|
+
import traceback
|
|
13
14
|
from typing import Any, Iterator, List, Optional, Tuple, Union
|
|
14
15
|
import sysconfig
|
|
15
16
|
import site
|
|
16
17
|
from importlib.metadata import distributions
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
|
|
20
|
+
def format_exception(e, with_traceback=False) -> str:
|
|
21
|
+
error_str, error_name = str(e), type(e).__name__
|
|
22
|
+
if error_str == "":
|
|
23
|
+
out_str = error_name
|
|
24
|
+
else:
|
|
25
|
+
out_str = f"{error_name}: {error_str}"
|
|
26
|
+
|
|
27
|
+
if not with_traceback:
|
|
28
|
+
return out_str
|
|
29
|
+
|
|
30
|
+
tb_list = traceback.format_tb(e.__traceback__)
|
|
31
|
+
tb_str = "".join(tb_list)
|
|
32
|
+
return f"{tb_str}{out_str}"
|
|
19
33
|
|
|
20
34
|
|
|
21
35
|
def get_installed_top_level_packages() -> list[str]:
|
|
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
|