use urlopen context manager to handle connection close in a timely manner by jubrad · Pull Request #47 · kevinsteves/pan-python

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

kevinsteves added a commit that referenced this pull request

Jan 13, 2023
#47
from Justin Bradfield.

1. Use urlopen() as a context manager
2. Immediately read() response
3. Set object 'pan_body' attribute to read() result

@jubrad jubrad deleted the close-connection branch

March 9, 2023 18:41