Lint fixes
This commit is contained in:
parent
33aa8bfa52
commit
4ff86b660c
@ -121,12 +121,12 @@ class register:
|
||||
# we assume count always has a default (and it should!)
|
||||
if self.nargs is not None:
|
||||
# If nargs is overriden, use that.
|
||||
if isinstance(self.nargs, int):
|
||||
if isinstance(self.nargs, Iterable):
|
||||
# Iterable (min, max)
|
||||
minargs, maxargs = self.nargs
|
||||
else:
|
||||
# Single int
|
||||
minargs, maxargs = self.nargs, self.nargs
|
||||
else:
|
||||
# Tuple (min, max)
|
||||
minargs, maxargs = self.nargs
|
||||
else:
|
||||
defaultcount = (len(spec.defaults) if spec.defaults is not None
|
||||
else 0)
|
||||
|
@ -179,7 +179,9 @@ class Config:
|
||||
def has_option(self, section, option):
|
||||
"""Return True if option is in section.
|
||||
|
||||
Return False if section does not exist."""
|
||||
Return False if section does not exist.
|
||||
|
||||
"""
|
||||
if section not in self.config:
|
||||
return False
|
||||
return option in self.config[section]
|
||||
|
@ -38,7 +38,6 @@ def init():
|
||||
for everything.
|
||||
|
||||
"""
|
||||
|
||||
global bridge
|
||||
bridge = MessageBridge()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user