isrpa 1.1.1__tar.gz → 1.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -61,10 +61,12 @@ def get_ssh_path(user_name):
61
61
 
62
62
  def get_ws_url():
63
63
  url = f"http://localhost:{port}/json/version"
64
- response = requests.get(url, headers={"Connection": "close"}, stream=True)
65
- if response.status_code != 200:
64
+ r = requests.get(url, headers={"Connection": "close"}, stream=True)
65
+ if r.status_code != 200:
66
66
  return "failure"
67
- return response.json().get('webSocketDebuggerUrl')
67
+ url = r.json().get('webSocketDebuggerUrl')
68
+ r.close()
69
+ return url
68
70
 
69
71
  ws_url = get_ws_url()
70
72
  return ws_url
@@ -120,10 +122,12 @@ def get_active_url(user_name):
120
122
 
121
123
  def get_json():
122
124
  url = f"http://localhost:{port}/json"
123
- response = requests.get(url, headers={"Connection": "close"}, stream=True)
124
- if response.status_code != 200:
125
+ r = requests.get(url, headers={"Connection": "close"}, stream=True)
126
+ if r.status_code != 200:
125
127
  return "failure"
126
- return response.json()
128
+ json_data = r.json()
129
+ r.close()
130
+ return json_data
127
131
 
128
132
  pages = get_json()
129
133
  if pages:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='isrpa',
5
- version='1.1.1',
5
+ version='1.1.2',
6
6
  packages=find_packages(),
7
7
  install_requires=["requests", "tldextract"],
8
8
  author='ysq',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes