mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Comment changes.
This commit is contained in:
parent
481c9f31ac
commit
8a18f03faa
@ -162,6 +162,7 @@ class Tokenizer:
|
|||||||
def handleToken(self, token):
|
def handleToken(self, token):
|
||||||
while token and token[0] == '"' and token[-1] == token[0]:
|
while token and token[0] == '"' and token[-1] == token[0]:
|
||||||
if len(token) > 1:
|
if len(token) > 1:
|
||||||
|
# token = token[1:-1].decode('string-escape') # 2.3+
|
||||||
token = eval('"%s"' % token[1:-1], self._env, self._env)
|
token = eval('"%s"' % token[1:-1], self._env, self._env)
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
@ -433,9 +434,6 @@ class PrivmsgRegexp(Privmsg):
|
|||||||
#for name, value in self.__class__.__dict__.iteritems():
|
#for name, value in self.__class__.__dict__.iteritems():
|
||||||
for name, value in self.__class__.__dict__.items():
|
for name, value in self.__class__.__dict__.items():
|
||||||
value = getattr(self, name)
|
value = getattr(self, name)
|
||||||
## if name[0] != '_' and inspect.ismethod(value) and \
|
|
||||||
## inspect.getargs(value.im_func.func_code) == \
|
|
||||||
## (['self', 'irc', 'msg', 'match'], None, None):
|
|
||||||
if self.isCommand(name):
|
if self.isCommand(name):
|
||||||
try:
|
try:
|
||||||
r = re.compile(value.__doc__, self.flags)
|
r = re.compile(value.__doc__, self.flags)
|
||||||
|
Loading…
Reference in New Issue
Block a user