diff options
| author | mryouse | 2022-05-10 05:19:53 +0000 | 
|---|---|---|
| committer | mryouse | 2022-05-10 05:19:53 +0000 | 
| commit | 8a75618be33f2c01691050111f75f1071cfac1b4 (patch) | |
| tree | 47b6c1422c30681d2bff4feeabf7c5f9928d5170 | |
| parent | a195702b9f43d4646714d5bad34a446261937493 (diff) | |
bugfix: sys.exit should take value, not object
| -rw-r--r-- | std.py | 7 | 
1 files changed, 4 insertions, 3 deletions
| @@ -10,9 +10,10 @@ DEBUG = True  def _get_debug():      return DEBUG -def std_exit(status=0): -    sys.exit(status) -    return NebLiteral(NebType.BOOL, True) +def std_exit(status=None): +    out = 0 if status is None else status.value +    sys.exit(out) +    return NebLiteral(NebType.BOOL, True)  # this should never be reached  def std_print(arg):      print(arg.value) | 
