aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSofian Brabez <sbz@FreeBSD.org>2012-09-06 15:54:37 +0000
committerSofian Brabez <sbz@FreeBSD.org>2012-09-06 15:54:37 +0000
commitd3c5a5d767c0ef575d290e827c9134f506020197 (patch)
tree9661550afec9a0c97de88dad4126e1ce18980956 /Tools
parentc06a0a3a9ad3dc56e0bdfcb49bf59d50b3ab7f2c (diff)
- Support Python 3.x
Notes
Notes: svn path=/head/; revision=303771
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/getpatch5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/scripts/getpatch b/Tools/scripts/getpatch
index 74ebf83abf4a..d8729ec93d3a 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