svn commit: r303771 - head/Tools/scripts

Sofian Brabez sbz at FreeBSD.org
Thu Sep 6 15:54:38 UTC 2012


Author: sbz
Date: Thu Sep  6 15:54:37 2012
New Revision: 303771
URL: http://svn.freebsd.org/changeset/ports/303771

Log:
  - Support Python 3.x

Modified:
  head/Tools/scripts/getpatch

Modified: head/Tools/scripts/getpatch
==============================================================================
--- head/Tools/scripts/getpatch	Thu Sep  6 15:50:30 2012	(r303770)
+++ head/Tools/scripts/getpatch	Thu Sep  6 15:54:37 2012	(r303771)
@@ -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



More information about the svn-ports-all mailing list