TSVZ 3.20__py3-none-any.whl → 3.21__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.20'
25
+ version = '3.21'
26
26
  __version__ = version
27
27
  author = 'pan@zopyr.us'
28
28
 
@@ -662,7 +662,8 @@ def appendLinesTabularFile(fileName,linesToAppend,teeLogger = None,header = '',c
662
662
  line[i] = str(line[i])
663
663
  except Exception as e:
664
664
  line[i] = str(e)
665
- if isinstance(linesToAppend,dict) and not line or line[0] != key:
665
+ if isinstance(linesToAppend,dict):
666
+ if (not line or line[0] != key):
666
667
  line = [key]+line
667
668
  formatedLines.append(line)
668
669
  with open(fileName, mode ='r+b')as file:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: TSVZ
3
- Version: 3.20
3
+ Version: 3.21
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=eRZASSHRWU-POztnPYvqZq9ufarsBq65VAnVQ2RB9vY,68436
2
+ tsvz-3.21.dist-info/METADATA,sha256=OFhlK4nFVUhqiBS9L9rpg8WPwcP0in8eKlyT2qps9PQ,1826
3
+ tsvz-3.21.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
+ tsvz-3.21.dist-info/entry_points.txt,sha256=WeXidyV5yKCRLaVsnAY35xGa08QgytOfvr1CK9aescI,60
5
+ tsvz-3.21.dist-info/top_level.txt,sha256=OPx4LvOpaYykaos7oL_jGaObSWXxLzhHiWLuz-K147g,5
6
+ tsvz-3.21.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- TSVZ.py,sha256=TcVMZcPjeBn9IF0jg6b8Z3xVOIoDqDLP90o3nsVLM1w,68422
2
- tsvz-3.20.dist-info/METADATA,sha256=TGyylT7aW0QwyQQqUvtD677ISp6XDo5gl5PS8qy5m-U,1826
3
- tsvz-3.20.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- tsvz-3.20.dist-info/entry_points.txt,sha256=WeXidyV5yKCRLaVsnAY35xGa08QgytOfvr1CK9aescI,60
5
- tsvz-3.20.dist-info/top_level.txt,sha256=OPx4LvOpaYykaos7oL_jGaObSWXxLzhHiWLuz-K147g,5
6
- tsvz-3.20.dist-info/RECORD,,
File without changes