aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorsbz <sbz@FreeBSD.org>2012-09-06 23:54:37 +0800
committersbz <sbz@FreeBSD.org>2012-09-06 23:54:37 +0800
commit5472ac42ee9a330e71684b5e69e996ccd44645da (patch)
tree9661550afec9a0c97de88dad4126e1ce18980956 /Tools/scripts
parent67ea5d4a6cc88a1689913df20db3f609fddf9d60 (diff)
downloadfreebsd-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-xTools/scripts/getpatch5
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