--- a/plugin.py Thu Nov 22 17:17:23 2018 +0800
+++ b/plugin.py Thu Nov 22 17:47:07 2018 +0800
irc.reply('no match found')
glossary = wrap(glossary, ['text'])
- def differential(self, irc, msg, args, phabrev, gotURL=False):
- Returns URL, description and status of revisions on differential."""
+ def _differential(self, irc, phabrev, gotURL=False):
baseurl = self.registryValue('phaburl')
url = '{}/D{}'.format(baseurl.rstrip('/'), phabrev)
page = utils.web.getUrl(url).decode('utf-8')
item = 'Revision {} {}, {}'.format(url, status, desc)
+ def differential(self, irc, msg, args, phabrev):
+ Returns URL, description and status of revisions on differential."""
+ self._differential(irc, phabrev)
differential = wrap(differential, ['phabrev'])
def snarfDifferential(self, irc, msg, match):
phabrev = match.group('phabrev')
- self.differential(self, irc, msg, msg.args, phabrev)
+ self._differential(irc, phabrev)
def snarfDifferentialURL(self, irc, msg, match):
phabrev = match.group('phabrev')
- self.differential(self, irc, msg, msg.args, phabrev, gotURL=True)
+ self._differential(irc, phabrev, gotURL=True)