jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/620774 )
Change subject: [cleanup] Remove unnecessary pass statements
......................................................................
[cleanup] Remove unnecessary pass statements
Change-Id: I995a9ee699e0cdaac680f059e2104bb7050b5224
---
M pywikibot/exceptions.py
1 file changed, 0 insertions(+), 26 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/exceptions.py b/pywikibot/exceptions.py
index 9da1d8d..a16de1b 100644
--- a/pywikibot/exceptions.py
+++ b/pywikibot/exceptions.py
@@ -225,8 +225,6 @@
# namespaces < 0 aren't supported (T169213)
message = 'Page %s is not supported due to namespace restriction.'
- pass
-
class NoMoveTarget(PageRelatedError):
@@ -234,8 +232,6 @@
message = 'Move target page of %s not found.'
- pass
-
class PageLoadRelatedError(PageRelatedError):
@@ -301,8 +297,6 @@
message = 'Page %s is a redirect page.'
- pass
-
class IsNotRedirectPage(PageRelatedError):
@@ -310,8 +304,6 @@
message = 'Page %s is not a redirect page.'
- pass
-
class CircularRedirect(PageRelatedError):
@@ -363,8 +355,6 @@
message = 'Page %s is locked.'
- pass
-
class LockedNoPage(LockedPage):
@@ -372,8 +362,6 @@
message = 'Page %s does not exist and is locked preventing creation.'
- pass
-
class CascadeLockedPage(LockedPage):
@@ -381,8 +369,6 @@
message = 'Page %s is locked due to cascading protection.'
- pass
-
class SectionError(Error):
@@ -400,8 +386,6 @@
message = 'Page %s could not be created due to parameter nocreate'
- pass
-
class EditConflict(PageSaveRelatedError):
@@ -409,8 +393,6 @@
message = 'Page %s could not be saved due to an edit conflict'
- pass
-
class PageDeletedConflict(EditConflict):
@@ -418,8 +400,6 @@
message = 'Page %s has been deleted since last retrieved.'
- pass
-
class PageCreatedConflict(EditConflict):
@@ -427,8 +407,6 @@
message = 'Page %s has been created since last retrieved.'
- pass
-
class ArticleExistsConflict(EditConflict):
@@ -437,8 +415,6 @@
message = ('Destination article %s already exists and is not a redirect '
'to the source article')
- pass
-
class SpamblacklistError(PageSaveRelatedError):
@@ -459,8 +435,6 @@
message = 'Page %s is title-blacklisted.'
- pass
-
class ServerError(Error):
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/620774
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I995a9ee699e0cdaac680f059e2104bb7050b5224
Gerrit-Change-Number: 620774
Gerrit-PatchSet: 1
Gerrit-Owner: Framawiki <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits