Merge pull request #1279 from rnc/master

Use copyfile instead of copy
This commit is contained in:
Valentin Lorentz 2016-12-23 15:11:58 +01:00 committed by GitHub
commit 22956a3f4d

View File

@ -208,7 +208,7 @@ if __name__ == '__main__':
# The registry *MUST* be opened before importing log or conf.
i18n.getLocaleFromRegistryFilename(registryFilename)
registry.open_registry(registryFilename)
shutil.copy(registryFilename, registryFilename + '.bak')
shutil.copyfile(registryFilename, registryFilename + '.bak')
except registry.InvalidRegistryFile as e:
s = '%s in %s. Please fix this error and start supybot again.' % \
(e, registryFilename)