Collected deprecated warnings
Warning: "[logilab.common.modutils] you should avoid using modpath_from_file(), it doesn't play well with symlinks and sys.meta_path and you should use python standard loaders"
Total number of occurences: 28
Structured data:
- kind: callable
- operation: deprecated
- outdated_package: logilab-common
- package: logilab-common
- version: None
- file_in_current_repo: True
Dependencies (detected during tests execution):
In test/test_modutils.py line 60 (full traceback)
(file on branch/default)
This warning originates from the source code of this respository
56
57
58
59
60
61
62
63
64 | """given an absolute file path return the python module's path as a list"""
def test_knownValues_modpath_from_file_1(self):
self.assertEqual(
modutils.modpath_from_file(modutils.__file__), ["logilab", "common", "modutils"]
)
def test_knownValues_modpath_from_file_2(self):
self.assertEqual(
|
In test/test_modutils.py line 65 (full traceback)
(file on branch/default)
This warning originates from the source code of this respository
61
62
63
64
65
66
67
68
69 | )
def test_knownValues_modpath_from_file_2(self):
self.assertEqual(
modutils.modpath_from_file(__file__, {path.split(__file__)[0]: "arbitrary.pkg"}),
["arbitrary", "pkg", "test_modutils"],
)
def test_raise_modpath_from_file_Exception(self):
|
In /usr/local/lib/python3.8/unittest/case.py line 202 (full traceback)
198
199
200
201
202
203
204
205 | self.obj_name = callable_obj.__name__
except AttributeError:
self.obj_name = str(callable_obj)
with self:
callable_obj(*args, **kwargs)
finally:
# bpo-23890: manually break a reference cycle
self = None
|
In /usr/local/lib/python3.7/unittest/case.py line 178 (full traceback)
174
175
176
177
178
179
180
181 | self.obj_name = callable_obj.__name__
except AttributeError:
self.obj_name = str(callable_obj)
with self:
callable_obj(*args, **kwargs)
finally:
# bpo-23890: manually break a reference cycle
self = None
|
Project yams (22 occurences)
Dependencies (detected during tests execution):
- Yams 1.0
- logilab-common 2.0.0
In yams/reader.py line 316 (full traceback)
(file on branch/default)
This warning originates from the source code of this respository
312
313
314
315
316
317
318
319
320 |
def exec_file(self, file_path: str, module_name: Optional[str]) -> Tuple[str, types.ModuleType]:
if module_name is None:
try:
module_name = ".".join(modpath_from_file(file_path, self.extra_path))
except ImportError:
warn(
"module for %s can't be found, add necessary __init__.py "
"files to make it importable" % file_path,
|
Warning: "provide a list of modules names instead of directories"
Total number of occurences: 5
Project yams (5 occurences)
Dependencies (detected during tests execution):
- Yams 1.0
- logilab-common 2.0.0
In yams/reader.py line 155 (full traceback)
(file on branch/default)
This warning originates from the source code of this respository
151
152
153
154
155
156
157
158
159 | # legacy usage using a directory list
is_directories = module_names and not isinstance(module_names[0], (list, tuple))
try:
if is_directories:
warn("provide a list of modules names instead of directories", DeprecationWarning)
self._load_definition_files(module_names) # type: ignore # retrocompat situation
else:
self._load_module_names(module_names)
|
Warning: "Flags not at the start of the expression '<[^>]*>(?i)(?m)'"
Total number of occurences: 2
Dependencies (detected during tests execution):
In test/test_engine.py line 38 (full traceback)
(file on branch/default)
This warning originates from the source code of this respository
34
35
36
37
38
39
40
41
42 | inputs = ("text/html",)
output = "text/plain"
def __call__(self, orig):
orig = re.sub("<[^>]*>(?i)(?m)", "", orig)
return url_unquote(re.sub("\n+", "\n", orig)).strip()
def _convert(self, data):
return self.__call__(data.data)
|
Project with outdated dependencies (but deprecated warnings):