rda-python-common 2.1.3__tar.gz → 2.1.5__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.
Files changed (33) hide show
  1. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/PKG-INFO +1 -1
  2. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/pyproject.toml +1 -1
  3. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_file.py +4 -3
  4. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_log.py +2 -3
  5. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common.egg-info/PKG-INFO +1 -1
  6. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/LICENSE +0 -0
  7. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/README.md +0 -0
  8. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/setup.cfg +0 -0
  9. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgCMD.py +0 -0
  10. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgDBI.py +0 -0
  11. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgFile.py +0 -0
  12. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgLOG.py +0 -0
  13. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgLock.py +0 -0
  14. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgOPT.py +0 -0
  15. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgSIG.py +0 -0
  16. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgSplit.py +0 -0
  17. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/PgUtil.py +0 -0
  18. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/__init__.py +0 -0
  19. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_cmd.py +0 -0
  20. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_dbi.py +0 -0
  21. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_lock.py +0 -0
  22. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_opt.py +0 -0
  23. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_password.py +0 -0
  24. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_sig.py +0 -0
  25. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_split.py +0 -0
  26. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pg_util.py +0 -0
  27. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common/pgpassword.py +0 -0
  28. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
  29. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
  30. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common.egg-info/entry_points.txt +0 -0
  31. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common.egg-info/requires.txt +0 -0
  32. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/src/rda_python_common.egg-info/top_level.txt +0 -0
  33. {rda_python_common-2.1.3 → rda_python_common-2.1.5}/test/test_common.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 2.1.3
3
+ Version: 2.1.5
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_common"
7
- version = "2.1.3"
7
+ version = "2.1.5"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -2994,8 +2994,8 @@ class PgFile(PgUtil, PgSIG):
2994
2994
  logact = lact = self.LOGWRN
2995
2995
  lvl = self.DIRLVLS
2996
2996
  self.DIRLVLS = 0 # set to 0 to stop recording directory
2997
- while lvl > 0:
2998
- lvl -= 1
2997
+ while lvl != 0:
2998
+ if lvl > 0: lvl -= 1
2999
2999
  dirs = {}
3000
3000
  for dir in self.DELDIRS:
3001
3001
  host = self.DELDIRS[dir]
@@ -3007,7 +3007,8 @@ class PgFile(PgUtil, PgSIG):
3007
3007
  elif dstat > 0:
3008
3008
  if dstat == 1 and lvl > 0: self.pglog(dinfo + ": Directory not empty yet", lact)
3009
3009
  continue
3010
- if lvl: dirs[op.dirname(dir)] = host
3010
+ pdir = self.dirname(dir)
3011
+ if lvl and pdir and not re.match(r'^(\.|\./|/)$', pdir): dirs[pdir] = host
3011
3012
  if not dirs: break
3012
3013
  self.DELDIRS = dirs
3013
3014
  self.DELDIRS = {} # empty cache afterward
@@ -199,9 +199,8 @@ class PgLOG:
199
199
  except Exception as e:
200
200
  self.pglog("{}: Error open file to write - {}".format(outfile, str(e)), self.PGOPT['extlog'])
201
201
  else: # result to STDOUT
202
- if self.OUTPUT and self.OUTPUT != sys.stdout:
203
- self.OUTPUT.close()
204
- self.OUTPUT = sys.stdout
202
+ if self.OUTPUT and self.OUTPUT != sys.stdout: self.OUTPUT.close()
203
+ self.OUTPUT = sys.stdout
205
204
 
206
205
  def current_datetime(self, ctime=0):
207
206
  """Return a datetime string in YYYYMMDDHHMMSS format.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 2.1.3
3
+ Version: 2.1.5
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