[PATCH 01 of 17] bugzilla: remove superfluous pass statements

Gregory Szorc gregory.szorc at gmail.com
Sat Sep 30 15:06:18 UTC 2017


On Sat, Sep 30, 2017 at 1:02 PM, Augie Fackler <raf at durin42.com> wrote:

> # HG changeset patch
> # User Augie Fackler <augie at google.com>
> # Date 1506700526 14400
> #      Fri Sep 29 11:55:26 2017 -0400
> # Node ID 200bd11a6fbb0a6f6667e65fd0af721e54e39d20
> # Parent  ac0cd81e2f83cd6a2910c61afbb98a415832f8e7
> bugzilla: remove superfluous pass statements
>

Queued, thanks.


>
> diff --git a/hgext/bugzilla.py b/hgext/bugzilla.py
> --- a/hgext/bugzilla.py
> +++ b/hgext/bugzilla.py
> @@ -412,11 +412,9 @@ class bzaccess(object):
>
>      def filter_real_bug_ids(self, bugs):
>          '''remove bug IDs that do not exist in Bugzilla from bugs.'''
> -        pass
>
>      def filter_cset_known_bug_ids(self, node, bugs):
>          '''remove bug IDs where node occurs in comment text from bugs.'''
> -        pass
>
>      def updatebug(self, bugid, newstate, text, committer):
>          '''update the specified bug. Add comment text and set new states.
> @@ -424,7 +422,6 @@ class bzaccess(object):
>          If possible add the comment as being from the committer of
>          the changeset. Otherwise use the default Bugzilla user.
>          '''
> -        pass
>
>      def notify(self, bugs, committer):
>          '''Force sending of Bugzilla notification emails.
> @@ -432,7 +429,6 @@ class bzaccess(object):
>          Only required if the access method does not trigger notification
>          emails automatically.
>          '''
> -        pass
>
>  # Bugzilla via direct access to MySQL database.
>  class bzmysql(bzaccess):
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170930/df245326/attachment-0002.html>


More information about the Mercurial-devel mailing list