From a909b40461c5619016bc1c8a1ecdb28a20962a29 Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Wed, 20 Jun 2018 15:30:13 -0500 Subject: [PATCH] osclib/stagingapi: superseded_request(): revert poor indentation changes. Human eyes can vertically. One does not write math homework like: 1. y = mx + b b = y - mx or 1. y = mx + b b = y - mx one write it 1. y = mx + b b = y - mx --- osclib/stagingapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osclib/stagingapi.py b/osclib/stagingapi.py index e23b7466..3f01524f 100644 --- a/osclib/stagingapi.py +++ b/osclib/stagingapi.py @@ -529,7 +529,7 @@ class StagingAPI(object): replace_old = request_old.find('state').get('name') in ['revoked', 'superseded'] if (request_new.find('action').get('type') == 'delete' and - request_old.find('action').get('type') == 'delete'): + request_old.find('action').get('type') == 'delete'): # Both delete requests. if replace_old: # Pointless since identical requests, but user desires. @@ -543,7 +543,7 @@ class StagingAPI(object): return stage_info, True if (request_new.find('action').get('type') != - request_old.find('action').get('type')): + request_old.find('action').get('type')): # One delete and one submit. if replace_old: if self.ring_packages.get(target_package):