Fix some pylint

This commit is contained in:
Cole Robinson 2014-05-31 17:37:19 -04:00
parent 091eb9fe26
commit 506791157e
1 changed files with 6 additions and 9 deletions

View File

@ -179,16 +179,13 @@ class VirtConverter(object):
self._err_clean = [] self._err_clean = []
self._force_clean = [] self._force_clean = []
if print_cb == -1: if print_cb == -1 or print_cb is None:
def cb(msg): def cb(msg):
print msg if print_cb == -1:
print_cb = cb print msg
if print_cb is None: self.print_cb = cb
def cb(msg): else:
ignore = msg self.print_cb = print_cb
pass
print_cb = cb
self.print_cb = print_cb
parser = None parser = None
if input_name: if input_name: