Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Only add isolation to repr if it's not None
  • Loading branch information
BeatButton committed Feb 15, 2021
commit 1eab8cafce90a02d4b4d7927dba1116c2c214006
3 changes: 2 additions & 1 deletion asyncpg/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ def __repr__(self):
attrs = []
attrs.append('state:{}'.format(self._state.name.lower()))

attrs.append(str(self._isolation))
if self._isolation is not None:
attrs.append(self._isolation)
if self._readonly:
attrs.append('readonly')
if self._deferrable:
Expand Down