mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05: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)
|
name = privmsgs.getArgs(args, required=0, optional=1)
|
||||||
if name:
|
if name:
|
||||||
|
if name.endswith('.py'):
|
||||||
|
name = name[:-3]
|
||||||
try:
|
try:
|
||||||
modules = {}
|
modules = {}
|
||||||
for moduleName in sys.modules:
|
for moduleName in sys.modules:
|
||||||
|
@ -183,6 +183,7 @@ class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
|||||||
|
|
||||||
def testRevision(self):
|
def testRevision(self):
|
||||||
self.assertNotError('revision Misc')
|
self.assertNotError('revision Misc')
|
||||||
|
self.assertNotError('revision Misc.py')
|
||||||
self.assertNotError('revision')
|
self.assertNotError('revision')
|
||||||
|
|
||||||
def testRevisionIsCaseInsensitive(self):
|
def testRevisionIsCaseInsensitive(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user