Adamw has uploaded a new change for review. https://gerrit.wikimedia.org/r/104760
Change subject: Higher-level move function, to cross filesystems ...................................................................... Higher-level move function, to cross filesystems Change-Id: I7c6cfef705128a15e6f641b4b39322668756aea8 --- M audit/paypal/parse_nightly 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/tools refs/changes/60/104760/1 diff --git a/audit/paypal/parse_nightly b/audit/paypal/parse_nightly index 44240b9..8f0b2c8 100755 --- a/audit/paypal/parse_nightly +++ b/audit/paypal/parse_nightly @@ -2,6 +2,7 @@ import os, os.path import re +import shutil from process.logging import Logger as log from process.globals import load_config load_config("paypal-audit") @@ -41,7 +42,7 @@ dest_path = os.path.join(config.archive_path, filename) log.info("Archiving {orig} to {new}".format(orig=path, new=dest_path)) - os.rename(path, dest_path) + shutil.move(path, dest_path) if __name__ == '__main__': lock.begin() -- To view, visit https://gerrit.wikimedia.org/r/104760 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7c6cfef705128a15e6f641b4b39322668756aea8 Gerrit-PatchSet: 1 Gerrit-Project: wikimedia/fundraising/tools Gerrit-Branch: master Gerrit-Owner: Adamw <awi...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits