abstract-utilities 0.2.2.473__py3-none-any.whl → 0.2.2.475__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.
Potentially problematic release.
This version of abstract-utilities might be problematic. Click here for more details.
- abstract_utilities/robust_readers/import_utils/clean_imports.py +4 -3
- {abstract_utilities-0.2.2.473.dist-info → abstract_utilities-0.2.2.475.dist-info}/METADATA +1 -1
- {abstract_utilities-0.2.2.473.dist-info → abstract_utilities-0.2.2.475.dist-info}/RECORD +5 -5
- {abstract_utilities-0.2.2.473.dist-info → abstract_utilities-0.2.2.475.dist-info}/WHEEL +0 -0
- {abstract_utilities-0.2.2.473.dist-info → abstract_utilities-0.2.2.475.dist-info}/top_level.txt +0 -0
|
@@ -8,8 +8,8 @@ from_tag = 'from '
|
|
|
8
8
|
def get_text_or_read(text=None,file_path=None):
|
|
9
9
|
text = text or ''
|
|
10
10
|
imports_js = {}
|
|
11
|
-
if file_path and os.path.isfile(file_path):
|
|
12
|
-
text
|
|
11
|
+
if not text and file_path and os.path.isfile(file_path):
|
|
12
|
+
text=read_from_file(file_path)
|
|
13
13
|
return text
|
|
14
14
|
def is_line_import(line):
|
|
15
15
|
if line and (line.startswith(from_tag) or line.startswith(import_tag)):
|
|
@@ -96,7 +96,7 @@ def get_all_imports(text=None,file_path=None,import_pkg_js=None):
|
|
|
96
96
|
import_pkg_js["all_data"].append(nu_data)
|
|
97
97
|
import_pkg_js["nulines"]=[]
|
|
98
98
|
import_pkg_js["file_path"]=file_path
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
for line in lines:
|
|
101
101
|
if line.startswith(import_tag) and ' from ' not in line:
|
|
102
102
|
cleaned_import_list = get_cleaned_import_list(line)
|
|
@@ -142,6 +142,7 @@ def clean_all_imports(text=None,file_path=None,import_pkg_js=None):
|
|
|
142
142
|
nu_lines[line] += imports
|
|
143
143
|
import_pkg_js["nulines"]=nu_lines
|
|
144
144
|
return import_pkg_js
|
|
145
|
+
|
|
145
146
|
def save_cleaned_imports(text=None,file_path=None,write=False,import_pkg_js=None):
|
|
146
147
|
import_pkg_js=get_all_imports(text=text,file_path=file_path,import_pkg_js=import_pkg_js)
|
|
147
148
|
import_pkg_js = clean_all_imports(text=text,file_path=file_path,import_pkg_js=import_pkg_js)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: abstract_utilities
|
|
3
|
-
Version: 0.2.2.
|
|
3
|
+
Version: 0.2.2.475
|
|
4
4
|
Summary: abstract_utilities is a collection of utility modules providing a variety of functions to aid in tasks such as data comparison, list manipulation, JSON handling, string manipulation, mathematical computations, and time operations.
|
|
5
5
|
Home-page: https://github.com/AbstractEndeavors/abstract_utilities
|
|
6
6
|
Author: putkoff
|
|
@@ -73,7 +73,7 @@ abstract_utilities/robust_readers/__init__.py,sha256=_1vhOG1FJnfrRK0ubkT1v6U6udH
|
|
|
73
73
|
abstract_utilities/robust_readers/imports.py,sha256=FtNxdPoLeeNycDnl-6rBGxBfYjhQ7VhmI5guj8XKFcU,355
|
|
74
74
|
abstract_utilities/robust_readers/initFuncGen.py,sha256=nrQn1KpSlPNKoOngN1uizVwNMA4llrcd8aGKqlzpXzI,5436
|
|
75
75
|
abstract_utilities/robust_readers/import_utils/__init__.py,sha256=0XaHXUzvgMjSV-4VXcBB-sLcXzL3U3ssHZ95YkvgS9w,195
|
|
76
|
-
abstract_utilities/robust_readers/import_utils/clean_imports.py,sha256=
|
|
76
|
+
abstract_utilities/robust_readers/import_utils/clean_imports.py,sha256=NRYVbnmxji_Fy4pBAPwl8djPHQHfYjm2weglQnqeERs,6431
|
|
77
77
|
abstract_utilities/robust_readers/import_utils/dot_utils.py,sha256=pmwnY461mOnDjIjgHD6H9MhQXFaF-q8kWerJDgJ1DuI,2364
|
|
78
78
|
abstract_utilities/robust_readers/import_utils/function_utils.py,sha256=Q9NKvRov3uAaz2Aal3d6fb_opWNXHF9C8GSKOjgfO8Y,1622
|
|
79
79
|
abstract_utilities/robust_readers/import_utils/import_utils.py,sha256=l0GYdtj5FEYX2yknL-8ru7_U2Sp9Hi1NpegqWPLRMc8,11705
|
|
@@ -86,7 +86,7 @@ abstract_utilities/ssh_utils/classes.py,sha256=3Q9BfLpyagNFYyiF4bt-5UCezeUJv9NK9
|
|
|
86
86
|
abstract_utilities/ssh_utils/imports.py,sha256=oX8WAv-pkhizzko_h3fIUp9Vhsse4nR7RN2vwONxIx0,317
|
|
87
87
|
abstract_utilities/ssh_utils/pexpect_utils.py,sha256=JBdOIXBTXAqE5TrsFjmPWJgwSaWyRJN8rbJ6y3_zKPY,10556
|
|
88
88
|
abstract_utilities/ssh_utils/utils.py,sha256=smUWAx3nW1h0etTndJ_te9bkUX5YzQ8kYd9_gD1TXLk,4882
|
|
89
|
-
abstract_utilities-0.2.2.
|
|
90
|
-
abstract_utilities-0.2.2.
|
|
91
|
-
abstract_utilities-0.2.2.
|
|
92
|
-
abstract_utilities-0.2.2.
|
|
89
|
+
abstract_utilities-0.2.2.475.dist-info/METADATA,sha256=6ix70KMts3pN70ui6fMUyeoUZevHvmdpBtMYU3O6F0c,28108
|
|
90
|
+
abstract_utilities-0.2.2.475.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
91
|
+
abstract_utilities-0.2.2.475.dist-info/top_level.txt,sha256=BF0GZ0xVFfN1K-hFIWPO3viNsOs1sSF86n1vHBg39FM,19
|
|
92
|
+
abstract_utilities-0.2.2.475.dist-info/RECORD,,
|
|
File without changes
|
{abstract_utilities-0.2.2.473.dist-info → abstract_utilities-0.2.2.475.dist-info}/top_level.txt
RENAMED
|
File without changes
|