Skip to content

Commit b69bce5

Browse files
committed
ruff nr 2
1 parent 7375a4d commit b69bce5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

irods/manager/user_manager.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,13 @@ def _parse_user_and_zone(user_param, zone_param):
5454
if '#' in user_param:
5555
u_parsed_user, u_parsed_zone = user_param.split('#',1)
5656
if not u_parsed_zone:
57-
raise RuntimeError(f"The compound user#zone specification may not contain a zero-length zone")
57+
raise RuntimeError("The compound user#zone specification may not contain a zero-length zone")
5858
else:
5959
if '#' in u_parsed_zone:
6060
raise RuntimeError(f"{u_parsed_zone = } is wrongly formatted")
6161
if zone_param and (u_parsed_zone != zone_param):
62-
raise RuntimeError(f"Two nonzero-length zone names ({u_parsed_zone}, {zone_param}) were given and do not agree.")
62+
raise RuntimeError(f"Two nonzero-length zone names ({u_parsed_zone}, {zone_param}) "
63+
" were given, but they do not agree.")
6364
return u_parsed_user, u_parsed_zone
6465
return user_param, zone_param
6566

@@ -143,9 +144,9 @@ def remove(self, user_name, user_zone="", _object=None):
143144
_object = self.get(user_name, user_zone)
144145

145146
if _object.type == "rodsgroup":
146-
uz_args = ( f"{_object.name}", )
147+
uz_args = (f"{_object.name}",)
147148
else:
148-
uz_args = ( f"{_object.name}#{_object.zone}", )
149+
uz_args = (f"{_object.name}#{_object.zone}",)
149150

150151
message_body = GeneralAdminRequest(
151152
"rm",

0 commit comments

Comments
 (0)