diff options
Diffstat (limited to 'Tools/scripts/getpatch')
-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 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 |