Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Commit 2ce85b7

Browse files
committed
Merge pull request #29 from florentx/sys-exit
Use standard sys.exit() instead of the fragile exit from site.py module
2 parents ddb0947 + ebf8a8c commit 2ce85b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

a2x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,4 +962,4 @@ def to_text(self):
962962
a2x.load_conf()
963963
a2x.execute()
964964
except KeyboardInterrupt:
965-
exit(1)
965+
sys.exit(1)

tests/testasciidoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def usage(msg=None):
411411
if cmd == 'run':
412412
tests.run(number, backend)
413413
if tests.failed:
414-
exit(1)
414+
sys.exit(1)
415415
elif cmd == 'update':
416416
tests.update(number, backend, force=force)
417417
elif cmd == 'list':

0 commit comments

Comments
 (0)