mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Made revision accept a .py at the end of the filenames.
This commit is contained in:
parent
d18d6b63c7
commit
eee9b5aaf2
@ -214,6 +214,8 @@ class Misc(callbacks.Privmsg):
|
||||
"""
|
||||
name = privmsgs.getArgs(args, required=0, optional=1)
|
||||
if name:
|
||||
if name.endswith('.py'):
|
||||
name = name[:-3]
|
||||
try:
|
||||
modules = {}
|
||||
for moduleName in sys.modules:
|
||||
|
@ -183,6 +183,7 @@ class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
|
||||
def testRevision(self):
|
||||
self.assertNotError('revision Misc')
|
||||
self.assertNotError('revision Misc.py')
|
||||
self.assertNotError('revision')
|
||||
|
||||
def testRevisionIsCaseInsensitive(self):
|
||||
|
Loading…
Reference in New Issue
Block a user