Skip to content

Commit

Permalink
fix: disable pylint unsupported-membership-test
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Jul 15, 2024
1 parent 03c556d commit 7803b17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def singleRemoval(self, opFile, targetSE):
proxyFile = None
if "Write access not permitted for this credential" in opFile.Error:
# # not a DataManger? set status to failed and return
if "DataManager" in self.shifter:
if "DataManager" in self.shifter: # pylint: disable =unsupported-membership-test
# # you're a data manager - save current proxy and get a new one for LFN and retry
saveProxy = os.environ["X509_USER_PROXY"]
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def singleRemoval(self, opFile, targetSE):
proxyFile = None
if "Write access not permitted for this credential" in opFile.Error:
# # not a DataManger? set status to failed and return
if "DataManager" not in self.shifter:
if "DataManager" not in self.shifter: # pylint: disable =unsupported-membership-test
opFile.Status = "Failed"
elif not opFile.LFN:
opFile.Error = "LFN not set"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def singleRemoval(self, opFile):
# # try to remove with owner proxy
proxyFile = None
if "Write access not permitted for this credential" in opFile.Error:
if "DataManager" in self.shifter:
if "DataManager" in self.shifter: # pylint: disable =unsupported-membership-test
# # you're a data manager - get proxy for LFN and retry
saveProxy = os.environ["X509_USER_PROXY"]
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _removeWithOwnerProxy(self, opFile, targetSE):
"""
if "Write access not permitted for this credential" in opFile.Error:
proxyFile = None
if "DataManager" in self.shifter:
if "DataManager" in self.shifter: # pylint: disable =unsupported-membership-test
# # you're a data manager - save current proxy and get a new one for LFN and retry
saveProxy = os.environ["X509_USER_PROXY"]
try:
Expand Down

0 comments on commit 7803b17

Please sign in to comment.