TSVZ 2.65__py3-none-any.whl → 2.66__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TSVZ
3
- Version: 2.65
3
+ Version: 2.66
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,7 @@
1
+ TSVZ.py,sha256=ttjNgB9aKnwmA4Zvp0xhhVKn2GUbgqSye1TwEppWXDg,42626
2
+ TSVZ-2.66.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
+ TSVZ-2.66.dist-info/METADATA,sha256=b02u5PsHzIfP1jy9GXFlZ-arcGQSi88siqVnrXkJmsY,1689
4
+ TSVZ-2.66.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
5
+ TSVZ-2.66.dist-info/entry_points.txt,sha256=WeXidyV5yKCRLaVsnAY35xGa08QgytOfvr1CK9aescI,60
6
+ TSVZ-2.66.dist-info/top_level.txt,sha256=OPx4LvOpaYykaos7oL_jGaObSWXxLzhHiWLuz-K147g,5
7
+ TSVZ-2.66.dist-info/RECORD,,
TSVZ.py CHANGED
@@ -10,7 +10,7 @@ if os.name == 'nt':
10
10
  elif os.name == 'posix':
11
11
  import fcntl
12
12
 
13
- version = '2.65'
13
+ version = '2.66'
14
14
  author = 'pan@zopyr.us'
15
15
 
16
16
 
@@ -877,12 +877,15 @@ memoryOnly:{self.memoryOnly}
877
877
  if self.verbose:
878
878
  self.__teePrintOrNot(f"File {file.name} unlocked / released")
879
879
  except Exception as e:
880
- self.__teePrintOrNot(f"Failed to release file {file.name}: {e}",'error')
881
- finally:
882
880
  try:
883
881
  self.writeLock.release() # Ensure the thread lock is always released
884
882
  except Exception as e:
885
883
  self.__teePrintOrNot(f"Failed to release writeLock for {file.name}: {e}",'error')
884
+ self.__teePrintOrNot(f"Failed to release file {file.name}: {e}",'error')
885
+ try:
886
+ self.writeLock.release() # Ensure the thread lock is always released
887
+ except Exception as e:
888
+ self.__teePrintOrNot(f"Failed to release writeLock for {file.name}: {e}",'error')
886
889
  self.externalFileUpdateTime = getFileUpdateTimeNs(self._fileName)
887
890
 
888
891
 
@@ -1,7 +0,0 @@
1
- TSVZ.py,sha256=tDsAV_zNosNEn5-FifNSgacdr9T-6zsQuZPZFkVakIc,42423
2
- TSVZ-2.65.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
- TSVZ-2.65.dist-info/METADATA,sha256=NxGY5k380-pEPwsTqQdUo3F52jiH8QexSbLcGN4Me94,1689
4
- TSVZ-2.65.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
5
- TSVZ-2.65.dist-info/entry_points.txt,sha256=WeXidyV5yKCRLaVsnAY35xGa08QgytOfvr1CK9aescI,60
6
- TSVZ-2.65.dist-info/top_level.txt,sha256=OPx4LvOpaYykaos7oL_jGaObSWXxLzhHiWLuz-K147g,5
7
- TSVZ-2.65.dist-info/RECORD,,
File without changes
File without changes