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.
221 def _exit(n): 222 _exit_(n)
25 def exit(i=None): 26 raise SystemExit('')
10 def exit_on_error(msg): 11 stderr.write(msg + "\n") 12 exit(1)
2352 def exit(self, status=0, message=None): 2353 if message: 2354 self._print_message(message, _sys.stderr) 2355 _sys.exit(status)
33 def exit_gracefully(*arguments): 34 sys.exit(1)
8 def error_exit(msg): 9 sys.stderr.write(msg + '\n') 10 sys.exit(1)
354 def 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)
240 def __exit__(self, *args): 241 del sys.path[-1]
42 def 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 49 Options: 50 --help (-h) : Show this usage message 51 --non-blocking : Don't wait for a lock that can't be immediately obtained 52 53 Obtain an exclusive lock (waiting for one unless --non-blocking is 54 passed) on REPOS-PATH, then check its lock usage counts. If there is 55 any accumulation present, report that accumulation to stdout. 56 """ % (os.path.basename(sys.argv[0]))) 57 sys.exit(retval)
307 def exit_miro(return_code): 308 """Exits Miro. 309 """ 310 sys.exit(return_code)