Update of /cvsroot/cvsshell/cvsshell/src
In directory usw-pr-cvs1:/tmp/cvs-serv20994
Modified Files:
basic_cmds.py cvs_shell.py
Log Message:
Applied changes suggested by pychecker
Index: basic_cmds.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/basic_cmds.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** basic_cmds.py 7 Mar 2002 12:20:58 -0000 1.5
--- basic_cmds.py 7 Mar 2002 12:35:06 -0000 1.6
***************
*** 406,409 ****
--- 406,410 ----
def parseDefaultOptions(lines, context):
+ app = context['APP']
splitRE = re.compile(r'\s*[,=]\s*')
defOpts = {}
Index: cvs_shell.py
===================================================================
RCS file: /cvsroot/cvsshell/cvsshell/src/cvs_shell.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** cvs_shell.py 7 Mar 2002 12:23:09 -0000 1.4
--- cvs_shell.py 7 Mar 2002 12:35:06 -0000 1.5
***************
*** 7,10 ****
--- 7,11 ----
VERSION = '0.1'
+ _cvsChangeCmdRE = re.compile(r'\s+(ad(d)?|new|ci|com(mit)?|delete|remove)\s+')
class CvsShell(PlugableApp, InteractiveApp):
***************
*** 74,79 ****
InteractiveApp.run(self)
- _cvsChangeCmdRE = re.compile(r'\s+(ad(d)?|new|ci|com(mit)?|delete|remove)\s+')
def execShellCmd(self, name, opts, context):
app = context['APP']
if name == 'cvs' and _cvsChangeCmdRE.search(opts): # command may change the status
--- 75,80 ----
InteractiveApp.run(self)
def execShellCmd(self, name, opts, context):
+ global _cvsChangeCmdRE
app = context['APP']
if name == 'cvs' and _cvsChangeCmdRE.search(opts): # command may change the status
|