summaryrefslogtreecommitdiff
path: root/obnamlib/structurederror.py
diff options
context:
space:
mode:
authorThomas Waldmann <tw@waldmann-edv.de>2015-02-27 18:27:46 +0100
committerLars Wirzenius <liw@liw.fi>2015-03-22 14:07:22 +0200
commitbece5d28349ac226713537bef07f85af65b96a26 (patch)
treec3003da386da80106f1ac0a3ea55dde2e3eb75a0 /obnamlib/structurederror.py
parent787478a81bbc7c1c74ed5c0f2d5ef26022ec4e42 (diff)
downloadobnam-bece5d28349ac226713537bef07f85af65b96a26.tar.gz
avoid shadowing builtins
Diffstat (limited to 'obnamlib/structurederror.py')
-rw-r--r--obnamlib/structurederror.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/structurederror.py b/obnamlib/structurederror.py
index 18c13e5a..16051743 100644
--- a/obnamlib/structurederror.py
+++ b/obnamlib/structurederror.py
@@ -100,8 +100,8 @@ class StructuredError(Exception):
summer = hashlib.md5()
summer.update(self.__class__.__name__)
summer.update(self.__class__.__module__)
- hash = summer.hexdigest()[:5]
- return 'R{0}X'.format(hash.upper())
+ shorthash = summer.hexdigest()[:5]
+ return 'R{0}X'.format(shorthash.upper())
def _format_msg(self, template):
# In case template is a docstring, remove leading whitespace