Skip to content

Commit 1b29f99

Browse files
committed
warehouse: make reformat
1 parent f93ad99 commit 1b29f99

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

warehouse/macaroons/services.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ def create_macaroon(self, location, user_id, description, caveats):
138138
# NOTE: This is a bit of a hack: we keep a separate copy of the
139139
# permissions caveat in the DB, so that we can display scope information
140140
# in the UI.
141-
permissions = next(
142-
c for c in caveats if "permissions" in c
143-
) # pragma: no cover
141+
permissions = next(c for c in caveats if "permissions" in c) # pragma: no cover
144142
dm = Macaroon(user=user, description=description, permissions=permissions)
145143
self.db.add(dm)
146144
self.db.flush()

0 commit comments

Comments
 (0)