fuzzy-dl-owl2 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
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.
- fuzzy_dl_owl2/fuzzydl/util/utils.py +38 -0
- {fuzzy_dl_owl2-1.0.0.dist-info → fuzzy_dl_owl2-1.0.1.dist-info}/METADATA +2 -2
- {fuzzy_dl_owl2-1.0.0.dist-info → fuzzy_dl_owl2-1.0.1.dist-info}/RECORD +5 -4
- {fuzzy_dl_owl2-1.0.0.dist-info → fuzzy_dl_owl2-1.0.1.dist-info}/LICENSE +0 -0
- {fuzzy_dl_owl2-1.0.0.dist-info → fuzzy_dl_owl2-1.0.1.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import ast
|
|
2
|
+
import datetime
|
|
3
|
+
import functools
|
|
4
|
+
import importlib
|
|
5
|
+
import importlib.util
|
|
6
|
+
import inspect
|
|
7
|
+
import os
|
|
8
|
+
import sys
|
|
9
|
+
import time
|
|
10
|
+
import types
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
from fuzzy_dl_owl2.fuzzydl.util.config_reader import ConfigReader
|
|
14
|
+
from fuzzy_dl_owl2.fuzzydl.util.util import Util
|
|
15
|
+
|
|
16
|
+
def recursion_unlimited(func: typing.Callable):
|
|
17
|
+
module: types.ModuleType = inspect.getmodule(func)
|
|
18
|
+
|
|
19
|
+
@functools.wraps(func)
|
|
20
|
+
def wrapper(*args, **kwargs):
|
|
21
|
+
orig_n: int = sys.getrecursionlimit()
|
|
22
|
+
while True:
|
|
23
|
+
try:
|
|
24
|
+
result = func(*args, **kwargs)
|
|
25
|
+
break
|
|
26
|
+
except RecursionError:
|
|
27
|
+
# since self.proposition is too long, change the recursion limit
|
|
28
|
+
n: int = sys.getrecursionlimit() * 2
|
|
29
|
+
sys.setrecursionlimit(n)
|
|
30
|
+
if ConfigReader.DEBUG_PRINT:
|
|
31
|
+
Util.debug(
|
|
32
|
+
f"Updating recursion limit for {module.__name__}:{func.__name__}() to {n}"
|
|
33
|
+
)
|
|
34
|
+
# reset recursion limit to its original value
|
|
35
|
+
sys.setrecursionlimit(orig_n)
|
|
36
|
+
return result
|
|
37
|
+
|
|
38
|
+
return wrapper
|
|
@@ -125,6 +125,7 @@ fuzzy_dl_owl2/fuzzydl/util/__init__.py,sha256=44tug6cK4CwfOR865-q1FOVN34TEDzfLla
|
|
|
125
125
|
fuzzy_dl_owl2/fuzzydl/util/config_reader.py,sha256=TQyWZ1EMqS8WteJfHUqQG-aloyxaZ7TJd32ox1k_0CU,2063
|
|
126
126
|
fuzzy_dl_owl2/fuzzydl/util/constants.py,sha256=PV6fSOk8rrVJ_7qnZ9xFCcjBxXpMH3mvHN83XpNaH4I,12749
|
|
127
127
|
fuzzy_dl_owl2/fuzzydl/util/util.py,sha256=5COC79TAJz8fNrRzXLbNpAT9rLd_0KrRI1OU-hob3oU,1903
|
|
128
|
+
fuzzy_dl_owl2/fuzzydl/util/utils.py,sha256=h18QpDSRjitsVPta_zmRvHC8HUdfFwbFqol4oLANITs,1133
|
|
128
129
|
fuzzy_dl_owl2/fuzzyowl2/__init__.py,sha256=C44P0-Sn35FQdVMqYLzeDWa5qPmokbcs8GPiD_zQaSg,153
|
|
129
130
|
fuzzy_dl_owl2/fuzzyowl2/fuzzyowl2.py,sha256=xe98T3nowcOK2VJ6gZpJqTxwH0qhLzdQz3yeJbKzdJU,71313
|
|
130
131
|
fuzzy_dl_owl2/fuzzyowl2/fuzzyowl2_java.py,sha256=doOKO57CflVr3z2t_H5flZ6pP8rf6AMJ9dsm3DAHBAw,64476
|
|
@@ -161,7 +162,7 @@ fuzzy_dl_owl2/fuzzyowl2/parser/__init__.py,sha256=fKaME_uuWyG5UB7VKD-nMV-j95lC1j
|
|
|
161
162
|
fuzzy_dl_owl2/fuzzyowl2/parser/owl2_parser.py,sha256=5eGyRbYUQNH5ZTKCjsOYOsw9Ode4lUl8eUNK4jQGZSs,19683
|
|
162
163
|
fuzzy_dl_owl2/fuzzyowl2/util/__init__.py,sha256=81quoggCuIypZjZs3bbf1Ty70KHdva5RGEJxi0oC57E,25
|
|
163
164
|
fuzzy_dl_owl2/fuzzyowl2/util/constants.py,sha256=05eQLYTB4CxxUZ_T-sNG9FsH8hkrBMAh2y24oiQN8xY,3904
|
|
164
|
-
fuzzy_dl_owl2-1.0.
|
|
165
|
-
fuzzy_dl_owl2-1.0.
|
|
166
|
-
fuzzy_dl_owl2-1.0.
|
|
167
|
-
fuzzy_dl_owl2-1.0.
|
|
165
|
+
fuzzy_dl_owl2-1.0.1.dist-info/LICENSE,sha256=er4Z7Ju3OzYUG5mbhh0krYVegIuv4PgehMzihVb2wpc,20131
|
|
166
|
+
fuzzy_dl_owl2-1.0.1.dist-info/METADATA,sha256=W2xov2rlxcA0OK9AlIiFn_DjLJG0aahhvYhya6_1-GQ,11235
|
|
167
|
+
fuzzy_dl_owl2-1.0.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
168
|
+
fuzzy_dl_owl2-1.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|