From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B6B681381F3 for ; Mon, 12 Nov 2012 21:41:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6728F21C01E; Mon, 12 Nov 2012 21:41:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EBA6221C01E for ; Mon, 12 Nov 2012 21:41:30 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E02CB33D9F6 for ; Mon, 12 Nov 2012 21:41:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 45599E5436 for ; Mon, 12 Nov 2012 21:41:28 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1352756384.cd29d33d2fc969844e6a2d13fbdd9de52be1d365.dol-sen@gentoo> Subject: [gentoo-commits] proj/mirrorselect:master commit in: mirrorselect/ X-VCS-Repository: proj/mirrorselect X-VCS-Files: mirrorselect/selectors.py X-VCS-Directories: mirrorselect/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: cd29d33d2fc969844e6a2d13fbdd9de52be1d365 X-VCS-Branch: master Date: Mon, 12 Nov 2012 21:41:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ccf6e02b-64da-45f7-9a63-ebb56b876698 X-Archives-Hash: adb811990f4219620d17f341876ca026 commit: cd29d33d2fc969844e6a2d13fbdd9de52be1d365 Author: Brian Dolbec gentoo org> AuthorDate: Mon Nov 12 21:39:44 2012 +0000 Commit: Brian Dolbec gmail com> CommitDate: Mon Nov 12 21:39:44 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mirrorselect.git;a=commit;h=cd29d33d fix dupe'd py3 check, set --- mirrorselect/selectors.py | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py index 98bd698..e3ad7d0 100644 --- a/mirrorselect/selectors.py +++ b/mirrorselect/selectors.py @@ -40,20 +40,17 @@ if int(sys.version[0]) == 3: import urllib.request, urllib.parse, urllib.error url_parse = urllib.parse url_open = urllib.request.urlopen + _unicode = str else: import urllib import urlparse url_parse = urlparse.urlparse url_open = urllib.urlopen + _unicode = unicode from mirrorselect.mirrorparser3 import MirrorParser3 -if sys.hexversion >= 0x3000000: - _unicode = str -else: - _unicode = unicode - class Extractor(object): """The Extractor employs a MirrorParser3 object to get a list of valid