rda-python-common 1.0.0__tar.gz → 1.0.1__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.
Potentially problematic release.
This version of rda-python-common might be problematic. Click here for more details.
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/PKG-INFO +1 -1
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/pyproject.toml +1 -1
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgLOG.py +6 -4
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common.egg-info/PKG-INFO +1 -1
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/LICENSE +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/README.md +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/setup.cfg +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgCMD.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgDBI.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgFile.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgGLBS.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgLock.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgOPT.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgPGS.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgSIG.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgSplit.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/PgUtil.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common/__init__.py +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
- {rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
@@ -1511,17 +1511,19 @@ def check_process_host(hosts, chost = None, mflag = None, pinfo = None, logact =
|
|
|
1511
1511
|
#
|
|
1512
1512
|
# convert special characters
|
|
1513
1513
|
#
|
|
1514
|
-
def convert_chars(name, default =
|
|
1514
|
+
def convert_chars(name, default = 'X'):
|
|
1515
|
+
|
|
1516
|
+
if not name: return default
|
|
1517
|
+
if re.match(r'^[a-zA-Z0-9]+$', name): return name # no need convert
|
|
1515
1518
|
|
|
1516
|
-
if not name or re.match(r'^[a-zA-Z0-9]+$', name): return name # no need convert
|
|
1517
|
-
|
|
1518
1519
|
z = ord('z')
|
|
1519
1520
|
newchrs = ochrs = ''
|
|
1520
|
-
if default == None: default = name
|
|
1521
1521
|
for i in range(len(name)):
|
|
1522
1522
|
ch = name[i]
|
|
1523
1523
|
if re.match(r'^[a-zA-Z0-9]$', ch):
|
|
1524
1524
|
newchrs += ch
|
|
1525
|
+
elif (ch == ' ' or ch == '_') and newchrs:
|
|
1526
|
+
newchrs += '_'
|
|
1525
1527
|
elif ord(ch) > z and ochrs != None:
|
|
1526
1528
|
if not ochrs:
|
|
1527
1529
|
ochrs = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: rda_python_common
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: RDA Python common library codes shared by other RDA python packages
|
|
5
5
|
Author-email: Zaihua Ji <zji@ucar.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/NCAR/rda-python-common
|
|
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
|
{rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rda_python_common-1.0.0 → rda_python_common-1.0.1}/src/rda_python_common.egg-info/top_level.txt
RENAMED
|
File without changes
|