libjam 0.0.8__py3-none-any.whl → 0.0.9__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.
libjam/drawer.py CHANGED
@@ -347,13 +347,13 @@ class Drawer:
347
347
  return outpath(temp)
348
348
 
349
349
  def get_file_size(self, path: str):
350
+ path = realpath(path)
350
351
  try:
351
- size = 0
352
352
  if self.is_file(path):
353
- path = realpath(path)
354
- size += os.path.getsize(path)
353
+ size = os.path.getsize(path)
355
354
  elif self.is_folder(path):
356
355
  subfiles = self.get_files_recursive(path)
356
+ size = 0
357
357
  for subfile in subfiles:
358
358
  size += os.path.getsize(subfile)
359
359
  return size
@@ -372,3 +372,6 @@ class Drawer:
372
372
  else:
373
373
  return 1
374
374
  return 0
375
+
376
+ def get_platform(self):
377
+ return PLATFORM
libjam/notebook.py CHANGED
@@ -87,7 +87,7 @@ class Notebook:
87
87
  try:
88
88
  data = json.loads(json_string)
89
89
  except json.decoder.JSONDecodeError:
90
- json_string = json_string.replace('\n', ' ')
90
+ json_string = json_string.replace('\n', ' ').strip()
91
91
  data = ast.literal_eval(json_string)
92
92
  except:
93
93
  data = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libjam
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: A library jam for Python.
5
5
  Project-URL: Homepage, https://github.com/philippkosarev/libjam
6
6
  Project-URL: Issues, https://github.com/philippkosarev/libjam/issues
@@ -1,11 +1,11 @@
1
1
  libjam/__init__.py,sha256=iLE2y9r0Sfe3oIeoFHKwFIyLL6d_KcLP7fINd7pPAlY,145
2
2
  libjam/captain.py,sha256=igx-ecKJBI_vBN-pW7KmSEnmYMIHQEb9tFzpy5qHmI8,5636
3
3
  libjam/clipboard.py,sha256=5HxlO8ztLJPlnSCq4PncGvY4JGc9C4J2uHcepjC6zmg,3496
4
- libjam/drawer.py,sha256=z7cGoRuLlC56LkVoQd1tQkigI-3hEo89b_9Q82f01ls,11447
4
+ libjam/drawer.py,sha256=gy887B5heBbzqT0R_36U3vaGiiR4avsZ4b52Uabhz2I,11491
5
5
  libjam/flashcard.py,sha256=ulV4KPC3BRWLxwkQ87vsY0aM38nYpzOjUOISxTIRVDg,437
6
- libjam/notebook.py,sha256=2Fr9pMPqvnbNzsQn3bG9PSv-ZjKDBJCHqq78jOAjYfE,3100
6
+ libjam/notebook.py,sha256=4aLVRVTefiHMip44TERLJAXv88U8G6mYLqc1UvWsEfs,3108
7
7
  libjam/typewriter.py,sha256=waKY1sDxGzI2ZT5dSzFmLGbaNTIpEM5Zhg_OlPFUAng,3730
8
- libjam-0.0.8.dist-info/METADATA,sha256=ad2TDwkFLixtR3-zX8bpO36uwpT99uge1DzPxA-MLZ0,2140
9
- libjam-0.0.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- libjam-0.0.8.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
11
- libjam-0.0.8.dist-info/RECORD,,
8
+ libjam-0.0.9.dist-info/METADATA,sha256=PDUnOoV4F7RduZA4OJYTL95W-E7tx4eBqWcFJCGE7mo,2140
9
+ libjam-0.0.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ libjam-0.0.9.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
11
+ libjam-0.0.9.dist-info/RECORD,,
File without changes