Date: Thu, 6 Sep 2012 15:54:37 +0000 (UTC) From: Sofian Brabez <sbz@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r303771 - head/Tools/scripts Message-ID: <201209061554.q86FsbVx045507@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209061554.q86FsbVx045507>