From bece5d28349ac226713537bef07f85af65b96a26 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 27 Feb 2015 18:27:46 +0100 Subject: avoid shadowing builtins --- obnamlib/structurederror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'obnamlib/structurederror.py') 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 -- cgit v1.2.1