From b1d1de659db7c3ab465e59eaf8242f4728353d94 Mon Sep 17 00:00:00 2001 From: magical Date: Sat, 6 Aug 2022 05:10:14 +0000 Subject: [PATCH] import exit The builtin exit function is added by the site package "for the interactive interpreter" and "should not be used in programs", according to the manual. We want sys.exit instead. (I didn't know you could pass it a string value, but it turns out you can.) --- clients/urwid/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/urwid/main.py b/clients/urwid/main.py index 0126f36..dadb23e 100644 --- a/clients/urwid/main.py +++ b/clients/urwid/main.py @@ -29,6 +29,7 @@ from getpass import getpass from subprocess import call from random import choice from code import interact +from sys import exit import rlcompleter import readline import tempfile