mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
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
|
||||
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
|
||||
separate words. This is because SQL itself is case-insensitive.
|
||||
|
||||
|
@ -273,7 +273,7 @@ class Misc(callbacks.Privmsg):
|
||||
return s.split(None, 3)[2]
|
||||
except:
|
||||
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 'supybot' in module.__file__:
|
||||
return getVersion(module.__revision__, name)
|
||||
|
Loading…
Reference in New Issue
Block a user