- Support Python 3.x

This commit is contained in:
Sofian Brabez 2012-09-06 15:54:37 +00:00
parent c06a0a3a9a
commit d3c5a5d767
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303771

View File

@ -31,7 +31,10 @@
import argparse
import re
import sys
import urllib2
if sys.version_info.major == 3:
import urllib.request as urllib2
else:
import urllib2
"""
FreeBSD getpatch handles Gnats and Bugzilla patch attachments