From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qssqd-0000lJ-5G for garchives@archives.gentoo.org; Mon, 15 Aug 2011 08:48:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E65BA21C03F; Mon, 15 Aug 2011 08:48:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AAFBD21C058 for ; Mon, 15 Aug 2011 08:48:29 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02A7E1B408C for ; Mon, 15 Aug 2011 08:48:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 170D280040 for ; Mon, 15 Aug 2011 08:48:28 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/basepm/ X-VCS-Repository: proj/gentoopm X-VCS-Files: gentoopm/basepm/contents.py X-VCS-Directories: gentoopm/basepm/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a80d8e7dfc32eaeb93f36cfbc7946ade3f4909f8 Date: Mon, 15 Aug 2011 08:48: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 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: a6b51c4151a27fffa03d4e9ef50697ce commit: a80d8e7dfc32eaeb93f36cfbc7946ade3f4909f8 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Mon Aug 15 08:39:39 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Mon Aug 15 08:39:39 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;= a=3Dcommit;h=3Da80d8e7d Migrate PMContentObj to new StringCompat. --- gentoopm/basepm/contents.py | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/gentoopm/basepm/contents.py b/gentoopm/basepm/contents.py index fc5ec66..be96e77 100644 --- a/gentoopm/basepm/contents.py +++ b/gentoopm/basepm/contents.py @@ -6,14 +6,11 @@ import os.path from abc import abstractmethod, abstractproperty =20 -from ..util import ABCObject, StringCompat2 +from ..util import ABCObject, StringCompat =20 -class PMContentObj(StringCompat2): - def __init__(self, path): - self._path =3D os.path.normpath(path) - - def __str__(self): - return self._path +class PMContentObj(StringCompat): + def __new__(self, path): + return StringCompat.__new__(self, os.path.normpath(path)) =20 class PMPackageContents(ABCObject): """