Skip to content

Commit

Permalink
Fix urllib import
Browse files Browse the repository at this point in the history
  • Loading branch information
sph3rex authored Feb 23, 2018
1 parent c1a04db commit c152334
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pywait.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
import sys
import time
import socket
from pprint import pprint
from urllib.request import urlopen
from contextlib import closing

try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen


def log(message):
if not args.quiet:
print(message)
Expand Down

0 comments on commit c152334

Please sign in to comment.