mirror of https://github.com/Mikaela/Limnoria.git
Reverted Misc and updated STYLE to reflect what I thought I'd already documented somewhere.
This commit is contained in:
parent
61e471a87c
commit
25efb6fc74
|
@ -75,6 +75,10 @@ statements in the code (commented out) so they can later be
|
||||||
re-enabled. Remember that once code is buggy, it tends to have more
|
re-enabled. Remember that once code is buggy, it tends to have more
|
||||||
bugs, and you'll probably need those print statements again.
|
bugs, and you'll probably need those print statements again.
|
||||||
|
|
||||||
|
While on the topic of logs, note that we do not use % with logged
|
||||||
|
strings; we simple pass the format parameters as additional
|
||||||
|
arguemnts.
|
||||||
|
|
||||||
SQL table names should be all-lowercase and include underscores to
|
SQL table names should be all-lowercase and include underscores to
|
||||||
separate words. This is because SQL itself is case-insensitive.
|
separate words. This is because SQL itself is case-insensitive.
|
||||||
|
|
||||||
|
|
|
@ -273,7 +273,7 @@ class Misc(callbacks.Privmsg):
|
||||||
return s.split(None, 3)[2]
|
return s.split(None, 3)[2]
|
||||||
except:
|
except:
|
||||||
self.log.exception('Getting %s module\'s revision number '
|
self.log.exception('Getting %s module\'s revision number '
|
||||||
'from __revision__ string: %s'%(n, s))
|
'from __revision__ string: %s', n, s)
|
||||||
if hasattr(module, '__revision__'):
|
if hasattr(module, '__revision__'):
|
||||||
if 'supybot' in module.__file__:
|
if 'supybot' in module.__file__:
|
||||||
return getVersion(module.__revision__, name)
|
return getVersion(module.__revision__, name)
|
||||||
|
|
Loading…
Reference in New Issue