Reverted Misc and updated STYLE to reflect what I thought I'd already documented somewhere.

This commit is contained in:
Jeremy Fincher 2004-08-23 13:30:35 +00:00
parent 61e471a87c
commit 25efb6fc74
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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)