Skip to content

Commit 61ceb88

Browse files
committed
fix incorrect use of urllib.request
1 parent b611dad commit 61ceb88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cupshelpers/openprinting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def run (self):
6969
self.result = b''
7070
status = 1
7171
try:
72-
req = urllib.request(self.url, headers=headers)
72+
req = urllib.request.Request(self.url, headers=headers)
7373
with urllib.request.urlopen(req, timeout=HTTPS_TIMEOUT) as resp:
7474
self.result = resp.read()
7575
status = 0

0 commit comments

Comments
 (0)