diff options
author | sbz <sbz@FreeBSD.org> | 2012-09-06 23:54:37 +0800 |
---|---|---|
committer | sbz <sbz@FreeBSD.org> | 2012-09-06 23:54:37 +0800 |
commit | 5472ac42ee9a330e71684b5e69e996ccd44645da (patch) | |
tree | 9661550afec9a0c97de88dad4126e1ce18980956 /Tools/scripts | |
parent | 67ea5d4a6cc88a1689913df20db3f609fddf9d60 (diff) | |
download | freebsd-ports-graphics-5472ac42ee9a330e71684b5e69e996ccd44645da.tar.gz freebsd-ports-graphics-5472ac42ee9a330e71684b5e69e996ccd44645da.tar.zst freebsd-ports-graphics-5472ac42ee9a330e71684b5e69e996ccd44645da.zip |
- Support Python 3.x
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/getpatch | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/scripts/getpatch b/Tools/scripts/getpatch index 74ebf83abf4..d8729ec93d3 100755 --- a/Tools/scripts/getpatch +++ b/Tools/scripts/getpatch @@ -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 |