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 5E977138204 for ; Thu, 5 Sep 2013 14:43:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 630FCE0EA7; Thu, 5 Sep 2013 14:43:15 +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 E9A52E0EA7 for ; Thu, 5 Sep 2013 14:43:14 +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 E0EB033EADD for ; Thu, 5 Sep 2013 14:43:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id F2D06E468F for ; Thu, 5 Sep 2013 14:43:11 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1378383918.6a4edc70205f7aaff3dd54f3ec00a44e5a84b89f.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/db/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/db/distmap.py X-VCS-Directories: roverlay/db/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 6a4edc70205f7aaff3dd54f3ec00a44e5a84b89f X-VCS-Branch: master Date: Thu, 5 Sep 2013 14:43:11 +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: 6a423d74-2abb-4902-9a02-0c9d794a39d3 X-Archives-Hash: 406233a0cbfd6867897eb1e084aaa019 commit: 6a4edc70205f7aaff3dd54f3ec00a44e5a84b89f Author: André Erdmann mailerd de> AuthorDate: Thu Sep 5 12:25:18 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Thu Sep 5 12:25:18 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=6a4edc70 distmap: remove unused imports --- roverlay/db/distmap.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/roverlay/db/distmap.py b/roverlay/db/distmap.py index ae29e14..66ed838 100644 --- a/roverlay/db/distmap.py +++ b/roverlay/db/distmap.py @@ -4,16 +4,11 @@ # Distributed under the terms of the GNU General Public License; # either version 2 of the License, or (at your option) any later version. -import bz2 -import gzip - import errno -import os.path import logging -import shutil import roverlay.digest -import roverlay.util +import roverlay.util.common import roverlay.util.fileio import roverlay.util.objects import roverlay.stats.collector @@ -687,7 +682,7 @@ class FileDistMap ( roverlay.util.fileio.TextFile, _DistMapBase ): # --- end of _read_header (...) --- def parse_line ( self, line ): - distfile, info = roverlay.util.headtail ( + distfile, info = roverlay.util.common.headtail ( line.split ( self.FIELD_DELIMITER ) ) self._distmap [distfile] = DistMapInfo ( distfile, *info )