10 examples of 'systemexit python' in Python

Every line of 'systemexit python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
221def _exit(n):
222 _exit_(n)
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

25def exit(i=None):
26 raise SystemExit('')
10def exit_on_error(msg):
11 stderr.write(msg + "\n")
12 exit(1)
2352def exit(self, status=0, message=None):
2353 if message:
2354 self._print_message(message, _sys.stderr)
2355 _sys.exit(status)
33def exit_gracefully(*arguments):
34 sys.exit(1)
8def error_exit(msg):
9 sys.stderr.write(msg + '\n')
10 sys.exit(1)
354def PrintUsageExit(code):
355 """Prints usage information and exits with a status code.
356
357 Args:
358 code: Status code to pass to sys.exit() after displaying usage information.
359 """
360 render_dict = DEFAULT_ARGS.copy()
361 render_dict['script'] = os.path.basename(sys.argv[0])
362 render_dict['logs_path'] = os.path.join(tempfile.gettempdir(),
363 'dev_appserver.logs')
364 print sys.modules['__main__'].__doc__ % render_dict
365 sys.stdout.flush()
366 sys.exit(code)
240def __exit__(self, *args):
241 del sys.path[-1]
42def usage_and_exit(retval):
43 if retval:
44 out = sys.stderr
45 else:
46 out = sys.stdout
47 out.write("""Usage: %s [OPTIONS] REPOS-PATH
48
49Options:
50 --help (-h) : Show this usage message
51 --non-blocking : Don't wait for a lock that can't be immediately obtained
52
53Obtain an exclusive lock (waiting for one unless --non-blocking is
54passed) on REPOS-PATH, then check its lock usage counts. If there is
55any accumulation present, report that accumulation to stdout.
56""" % (os.path.basename(sys.argv[0])))
57 sys.exit(retval)
307def exit_miro(return_code):
308 """Exits Miro.
309 """
310 sys.exit(return_code)

Related snippets