8000 Remove unnecessary imports. · pythonAI/client_python@51b1ab0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51b1ab0

Browse files
committed
Remove unnecessary imports.
1 parent a67bf46 commit 51b1ab0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

prometheus_client/exposition.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@
1616
try:
1717
from BaseHTTPServer import BaseHTTPRequestHandler
1818
from BaseHTTPServer import HTTPServer
19-
from urllib2 import build_opener, Request, HTTPHandler
2019
from urllib import quote_plus
2120
from urlparse import parse_qs, urlparse
2221
except ImportError:
2322
# Python 3
2423
unicode = str
2524
from http.server import BaseHTTPRequestHandler
2625
from http.server import HTTPServer
27-
from urllib.request import build_opener, Request, HTTPHandler
2826
from urllib.parse import quote_plus, parse_qs, urlparse
2927

3028

prometheus_client/handlers/basic_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python
22

3-
import os, base64
3+
import base64
44

55
from prometheus_client.handlers.base import handler as default_handler
66

0 commit comments

Comments
 (0)
0