mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
Use closing consistently.
This commit is contained in:
@@ -74,7 +74,7 @@ class PubSub(object):
|
||||
Ideally this should be used with `contextmanager.closing` to ensure
|
||||
well-behavedness:
|
||||
|
||||
from contextmanager import closing
|
||||
from contextlib import closing
|
||||
|
||||
with closing(PubSub('foobar')) as foobar:
|
||||
for message in foobar.subscribe(wait=0.1):
|
||||
|
||||
Reference in New Issue
Block a user