mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-10 14:24:57 -05:00
Merge pull request #3107 from NotAFile/py3-bool-nonzero
add __bool__ alias to __nonzero__ methods
This commit is contained in:
commit
8dc4a6144b
3 changed files with 9 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ class LoggingContext(object):
|
|||
|
||||
def __nonzero__(self):
|
||||
return False
|
||||
__bool__ = __nonzero__ # python3
|
||||
|
||||
sentinel = Sentinel()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue