From 95503662a308de1cf83bb142f006d44f9a9cdb83 Mon Sep 17 00:00:00 2001 From: Matt Coleman Date: Tue, 30 Jun 2020 20:24:25 -0400 Subject: [PATCH] Remove unused patch --- configshell-fix-term.patch | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 configshell-fix-term.patch diff --git a/configshell-fix-term.patch b/configshell-fix-term.patch deleted file mode 100644 index 3f4ed8a..0000000 --- a/configshell-fix-term.patch +++ /dev/null @@ -1,31 +0,0 @@ -commit daa66bc6acd2430cdd05e9883dd1eab69b698252 -Author: Andy Grover -Date: Tue May 23 12:00:10 2017 -0700 - - Handle if TERM is not set - - Previous patch causes problems otherwise in some cases. - - Signed-off-by: Andy Grover - -diff --git a/configshell/shell.py b/configshell/shell.py -index c916366..e029c76 100644 ---- a/configshell/shell.py -+++ b/configshell/shell.py -@@ -50,13 +50,14 @@ else: - tty=False - - # remember the original setting -- oldTerm = os.environ['TERM'] -+ oldTerm = os.environ.get('TERM') - os.environ['TERM'] = '' - - import readline - - # restore the orignal TERM setting -- os.environ['TERM'] = oldTerm -+ if oldTerm != None: -+ os.environ['TERM'] = oldTerm - del oldTerm - - # Pyparsing helper to group the location of a token and its value