jenkins-bot merged this change.
[bugfix] fix wrong parenthesis in getUploadDate
copied from PR#26
https://github.com/wikimedia/pywikibot/pull/26/commits/7f2f66d39e52fd218de76d99d19cd3cff101c50b
Change-Id: I4aa1475cfea0b833d7bfc994f12871ba7d8515b8
Signed-off-by: Frédéric Chapoton
---
M scripts/imagecopy_self.py
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/imagecopy_self.py b/scripts/imagecopy_self.py
index 8ba89d7..28b8898 100644
--- a/scripts/imagecopy_self.py
+++ b/scripts/imagecopy_self.py
@@ -540,8 +540,8 @@
uploadDatetime = datetime.strptime(uploadtime, '%Y-%m-%dT%H:%M:%SZ')
return ('{{Date|%s|%s|%s}} (original upload date)'
% (str(uploadDatetime.year),
- str(uploadDatetime.month,
- str(uploadDatetime.day))))
+ str(uploadDatetime.month),
+ str(uploadDatetime.day)))
def getSource(self, imagepage, source=''):
"""Get text to put in the source field of new information template."""
To view, visit change 494018. To unsubscribe, or for help writing mail filters, visit settings.