rbx.cp 0.5.21__py3-none-any.whl → 0.5.22__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.
rbx/box/solutions.py CHANGED
@@ -955,9 +955,16 @@ def _print_limits(limits: Dict[str, Limits]):
955
955
  )
956
956
  for lang, limit in limits.items():
957
957
  console.console.print(f'[bold][status]{lang}[/status][/bold]')
958
- console.console.print(f'Time: {get_formatted_time(limit.time or int('+inf'))}')
959
- memory = limit.memory * 1024 * 1024 if limit.memory is not None else int('+inf')
960
- console.console.print(f'Memory: {get_formatted_memory(memory)}')
958
+ time = (
959
+ '<No time limit>' if limit.time is None else get_formatted_time(limit.time)
960
+ )
961
+ memory = (
962
+ '<No memory limit>'
963
+ if limit.memory is None
964
+ else get_formatted_memory(limit.memory * 1024 * 1024)
965
+ )
966
+ console.console.print(f'Time: {time}')
967
+ console.console.print(f'Memory: {memory}')
961
968
  if limit.isDoubleTL:
962
969
  console.console.print('[warning]Running with 2*TL[/warning]')
963
970
  console.console.print()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rbx.cp
3
- Version: 0.5.21
3
+ Version: 0.5.22
4
4
  Summary:
5
5
  Author: Roberto Sales
6
6
  Requires-Python: >=3.9,<4.0
@@ -39,7 +39,7 @@ rbx/box/presets/schema.py,sha256=mZmSPkQsw7eQM0lQN6er1MO_LiW1ObwwAZFDK0F5fxE,196
39
39
  rbx/box/sanitizers/warning_stack.py,sha256=RI97_GJgdjTKIXY_r0EKp5h0qQQSDSdNDh5K7zINrqs,2861
40
40
  rbx/box/schema.py,sha256=mPEOchzoGDwk_S9wUw1DKqwJWJ0S5GTxQnZIlm9BFwo,13709
41
41
  rbx/box/setter_config.py,sha256=6nGTPMvnJ7y1sM-EBuI493NSZOIiOZ1DTypSXrL-HRY,3686
42
- rbx/box/solutions.py,sha256=SijWw3bn8EwJq8SPqkLOfWuTN2TKbYZ0IVMiU9Pz4s4,36458
42
+ rbx/box/solutions.py,sha256=0kVFY_RdQQ-wK9hk4XY4VeJv5oPNkkq28x1sk8RNP3o,36584
43
43
  rbx/box/solutions_test.py,sha256=Cx7Goon_0sz_PaUcD8qa8gmjgzOVub6VHss3CB0GaA0,1524
44
44
  rbx/box/statements/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  rbx/box/statements/build_statements.py,sha256=upsMT-cAnSvbmKgtijdFc0OxPcyeBxRG92hY6dN-ZOk,11920
@@ -162,8 +162,8 @@ rbx/testdata/caching/executable.py,sha256=WKRHNf_fprFJd1Fq1ubmQtR3mZzTYVNwKPLWuZ
162
162
  rbx/testdata/compatible,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
163
163
  rbx/testing_utils.py,sha256=ZZLKMUHlZ4HwsuNY50jqSBJ9HhpnFdba7opjDsvXE1U,2084
164
164
  rbx/utils.py,sha256=WlmnF4whc0-6ksVZoOhmom2bR2spT6zETFHjnpJOCsA,4383
165
- rbx_cp-0.5.21.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
166
- rbx_cp-0.5.21.dist-info/METADATA,sha256=ABnLifpLJq8XUwpooWVL9fxZN_O0P1Ho1naYeuDuzdY,3290
167
- rbx_cp-0.5.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
168
- rbx_cp-0.5.21.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
169
- rbx_cp-0.5.21.dist-info/RECORD,,
165
+ rbx_cp-0.5.22.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
166
+ rbx_cp-0.5.22.dist-info/METADATA,sha256=uUIasZQ4aNtfxM9AnnRJe2S_I3Z6kzxT_qtTDQmdVlM,3290
167
+ rbx_cp-0.5.22.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
168
+ rbx_cp-0.5.22.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
169
+ rbx_cp-0.5.22.dist-info/RECORD,,