Fix warnings from pyflakes

This commit is contained in:
Kovid Goyal 2013-08-30 08:46:50 +05:30
parent e933f57798
commit fd3978d9d1

View File

@ -924,7 +924,7 @@ Enter SQL statements terminated with a ";"
fn=getattr(self, "command_"+cmd[0], None) fn=getattr(self, "command_"+cmd[0], None)
if not fn: if not fn:
raise self.Error("Unknown command \"%s\". Enter \".help\" for help" % (cmd[0],)) raise self.Error("Unknown command \"%s\". Enter \".help\" for help" % (cmd[0],))
res=fn(cmd[1:]) fn(cmd[1:])
### ###
### Commands start here ### Commands start here
@ -2861,7 +2861,7 @@ Enter SQL statements terminated with a ";"
def __getattr__(self, k): def __getattr__(self, k):
return "" return ""
def colour_value(self, val, formatted): def colour_value(self, val, formatted):
c=self.colour self.colour
if val is None: if val is None:
return self.vnull+formatted+self.vnull_ return self.vnull+formatted+self.vnull_
if isinstance(val, Shell._basestring): if isinstance(val, Shell._basestring):