summaryrefslogtreecommitdiffstats
path: root/wallace
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2018-07-31 12:00:34 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2018-07-31 12:01:04 +0200
commit11c1ad7145051ebc323c93414a822690656f4d7e (patch)
tree92c9375cfafcc469bfbbadc17d67393392960524 /wallace
parentef306868a17cadee2712148faa59b323afa3d5df (diff)
downloadpykolab-11c1ad7145051ebc323c93414a822690656f4d7e.tar.gz
Avoid the use of duplicate names for functions and in-function scope variables where both are used in the same scope
Reference T123747
Diffstat (limited to 'wallace')
-rw-r--r--wallace/module_resources.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wallace/module_resources.py b/wallace/module_resources.py
index 80c85f1..1abbcd3 100644
--- a/wallace/module_resources.py
+++ b/wallace/module_resources.py
@@ -358,7 +358,7 @@ def execute(*args, **kw):
# do the magic for the receiving attendee
(available_resource, itip_event) = check_availability(itip_events, resource_dns, resources, receiving_attendee)
- reject = False
+ _reject = False
resource = None
original_resource = None
@@ -401,10 +401,10 @@ def execute(*args, **kw):
if invitationpolicy is not None:
for policy in invitationpolicy:
if policy & ACT_REJECT:
- reject = True
+ _reject = True
break
- if resource is not None and not reject:
+ if resource is not None and not _reject:
log.debug(_("Accept invitation for individual resource %r / %r") % (resource['dn'], resource['mail']), level=8)
accept_reservation_request(itip_event, resource, original_resource, False, invitationpolicy)
else: