mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-01 03:50:41 +01:00
Use of (preferred?) format string notation.
This commit is contained in:
parent
b77d6d0afc
commit
181f9899b4
@ -272,8 +272,8 @@ class Misc(callbacks.Privmsg):
|
|||||||
try:
|
try:
|
||||||
return s.split(None, 3)[2]
|
return s.split(None, 3)[2]
|
||||||
except:
|
except:
|
||||||
self.log.exception('Couldn\'t get id string from module '
|
self.log.exception('Getting %s module\'s revision number '
|
||||||
'%s: %r', 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…
x
Reference in New Issue
Block a user