We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7a361 commit 31c41cbCopy full SHA for 31c41cb
completion.py
@@ -2,16 +2,16 @@
2
from functools import cache
3
from pathlib import Path
4
from tempfile import TemporaryDirectory
5
-from urllib.request import urlopen
6
7
import git
+import urllib3
8
from potodo import potodo
9
10
11
@cache
12
def branches_from_peps() -> list[str]:
13
- with urlopen('https://peps.python.org/api/release-cycle.json') as in_file:
14
- data = json.loads(in_file.read().decode('utf-8'))
+ resp = urllib3.request('GET', 'https://peps.python.org/api/release-cycle.json')
+ data = json.loads(resp.data.decode('utf-8'))
15
return [
16
branch for branch in data if data[branch]['status'] in ('bugfix', 'security')
17
]
0 commit comments