jenkins-bot has submitted this change and it was merged.
Change subject: [BUGFIX] bot.py: 2nd hasattr parameter must be a string
......................................................................
[BUGFIX] bot.py: 2nd hasattr parameter must be a string
Change-Id: I7cc9ebecd876529c2c44f17519c03dd6e79ba6bf
---
M pywikibot/bot.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index fb62888..c530c4b 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -21,9 +21,9 @@
import os.path
import sys
-# logging levels
_logger = "bot"
+# logging levels
from logging import DEBUG, INFO, WARNING, ERROR, CRITICAL
STDOUT = 16
VERBOSE = 18
@@ -83,7 +83,7 @@
os.rename(self.baseFilename, dfn)
#print "%s -> %s" % (self.baseFilename, dfn)
elif self.backupCount == -1:
- if not hasattr(self, lastNo):
+ if not hasattr(self, '_lastNo'):
self._lastNo = 1
while True:
fn = "%s.%d%s" % (root, self._lastNo, ext)
--
To view, visit https://gerrit.wikimedia.org/r/94597
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7cc9ebecd876529c2c44f17519c03dd6e79ba6bf
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits