Skip to content

Commit

Permalink
[github] Python 3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Alfassa committed Feb 22, 2014
1 parent cb6ff01 commit 022d25c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion github.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"""

from datetime import datetime
from urllib2 import HTTPError
import sys
if sys.version_info.major < 3:
from urllib2 import HTTPError
else:
from urllib.error import HTTPError
import json
from willie import web, tools
from willie.module import commands, rule, NOLIMIT
Expand Down

0 comments on commit 022d25c

Please sign in to comment.