TSVZ 3.22__py3-none-any.whl → 3.23__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.
TSVZ.py CHANGED
@@ -22,7 +22,7 @@ if os.name == 'nt':
22
22
  elif os.name == 'posix':
23
23
  import fcntl
24
24
 
25
- version = '3.22'
25
+ version = '3.23'
26
26
  __version__ = version
27
27
  author = 'pan@zopyr.us'
28
28
 
@@ -672,6 +672,10 @@ def appendLinesTabularFile(fileName,linesToAppend,teeLogger = None,header = '',c
672
672
  if (not line or line[0] != key):
673
673
  line = [key]+line
674
674
  formatedLines.append(line)
675
+ if not formatedLines:
676
+ if verbose:
677
+ __teePrintOrNot(f"No lines to append to {fileName}",teeLogger=teeLogger)
678
+ return
675
679
  with open(fileName, mode ='r+b')as file:
676
680
  correctColumnNum = max([len(line) for line in formatedLines])
677
681
  if header.rstrip() and verifyHeader:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: TSVZ
3
- Version: 3.22
3
+ Version: 3.23
4
4
  Summary: An simple in memory wrapper around a TSV file to function as a database
5
5
  Home-page: https://github.com/yufei-pan/TSVZ
6
6
  Author: Yufei Pan
@@ -0,0 +1,6 @@
1
+ TSVZ.py,sha256=PG3VoplnSdmgvm2vuor_nPXLSlwQ-B9ZBN-psDfefK0,68850
2
+ tsvz-3.23.dist-info/METADATA,sha256=kK-NSB38DG_p6rzFmiu2qcijSOb1U2xI-SkglShvxDk,1826
3
+ tsvz-3.23.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
4
+ tsvz-3.23.dist-info/entry_points.txt,sha256=WeXidyV5yKCRLaVsnAY35xGa08QgytOfvr1CK9aescI,60
5
+ tsvz-3.23.dist-info/top_level.txt,sha256=OPx4LvOpaYykaos7oL_jGaObSWXxLzhHiWLuz-K147g,5
6
+ tsvz-3.23.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- TSVZ.py,sha256=Sk_rnni6yqL3GYJKuVNqpMBELxZ_fflUKmPR5Y2huU4,68704
2
- tsvz-3.22.dist-info/METADATA,sha256=GRBc-k-8yjt1fL7lCiew4C4bRz0pgwd-naUBziBh4VQ,1826
3
- tsvz-3.22.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
4
- tsvz-3.22.dist-info/entry_points.txt,sha256=WeXidyV5yKCRLaVsnAY35xGa08QgytOfvr1CK9aescI,60
5
- tsvz-3.22.dist-info/top_level.txt,sha256=OPx4LvOpaYykaos7oL_jGaObSWXxLzhHiWLuz-K147g,5
6
- tsvz-3.22.dist-info/RECORD,,
File without changes