TSVZ 3.13__tar.gz → 3.15__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: TSVZ
3
- Version: 3.13
3
+ Version: 3.15
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: TSVZ
3
- Version: 3.13
3
+ Version: 3.15
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
@@ -22,7 +22,7 @@ if os.name == 'nt':
22
22
  elif os.name == 'posix':
23
23
  import fcntl
24
24
 
25
- version = '3.13'
25
+ version = '3.15'
26
26
  __version__ = version
27
27
  author = 'pan@zopyr.us'
28
28
 
@@ -235,7 +235,10 @@ def __teePrintOrNot(message,level = 'info',teeLogger = None):
235
235
  """
236
236
  try:
237
237
  if teeLogger:
238
- teeLogger.teelog(message,level)
238
+ try:
239
+ teeLogger.teelog(message,level,callerStackDepth=3)
240
+ except:
241
+ teeLogger.teelog(message,level)
239
242
  else:
240
243
  print(message,flush=True)
241
244
  except Exception as e:
@@ -289,7 +292,7 @@ def _processLine(line,taskDic,correctColumnNum,verbose = False,teeLogger = None,
289
292
  elif lineCache[0] == DEFAULTS_INDICATOR_KEY:
290
293
  if verbose:
291
294
  __teePrintOrNot(f"Empty defaults line found: {line}",teeLogger=teeLogger)
292
- defaults = []
295
+ defaults.clear()
293
296
  else:
294
297
  if verbose:
295
298
  __teePrintOrNot(f"Key {lineCache[0]} found with empty value, deleting such key's representaion",teeLogger=teeLogger)
@@ -319,7 +322,7 @@ def _processLine(line,taskDic,correctColumnNum,verbose = False,teeLogger = None,
319
322
  if lineCache[0] == DEFAULTS_INDICATOR_KEY:
320
323
  if verbose:
321
324
  __teePrintOrNot(f"Defaults line found: {line}",teeLogger=teeLogger)
322
- defaults = lineCache
325
+ defaults[:] = lineCache
323
326
  return correctColumnNum , []
324
327
  taskDic[lineCache[0]] = lineCache
325
328
  if verbose:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes