From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/depres/
Date: Tue, 23 Jul 2013 07:51:30 +0000 (UTC) [thread overview]
Message-ID: <1374132598.e499fb1751df277f49df3abfbbd3a873762f8918.dywi@gentoo> (raw)
Message-ID: <20130723075130.6z51qBpRSdOWydGATsgk7Ir_lNgQ2fRLd6dkUQv_Xhg@z> (raw)
commit: e499fb1751df277f49df3abfbbd3a873762f8918
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Thu Jul 18 07:29:58 2013 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Thu Jul 18 07:29:58 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=e499fb17
roverlay/depres/depresult: remove __getitem__()
---
roverlay/depres/depresult.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/roverlay/depres/depresult.py b/roverlay/depres/depresult.py
index 2ad2488..d084ea0 100644
--- a/roverlay/depres/depresult.py
+++ b/roverlay/depres/depresult.py
@@ -4,8 +4,6 @@
# Distributed under the terms of the GNU General Public License;
# either version 2 of the License, or (at your option) any later version.
-from __future__ import print_function
-
__all__ = [ 'DepResult', 'DEP_NOT_RESOLVED', ]
import logging
@@ -79,19 +77,6 @@ class _DepResult ( object ):
return self.dep if self.dep is not None else EMPTY_STR
# --- end of __str__ (...) ---
- def __getitem__ ( self, key ):
- # for backwards compatibility, indexing is supported
- print ( "FIXME: __getitem__ is deprecated" )
- if key == 0:
- return self.score
- elif key == 1:
- return self.dep
- elif isinstance ( key, int ):
- raise IndexError ( key )
- else:
- raise KeyError ( key )
- # --- end of __getitem__ (...) ---
-
def prepare_selfdep_reduction ( self ):
"""Prepares this dep result for selfdep validation by creating all
necessary variables.
next reply other threads:[~2013-07-23 7:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-18 19:25 André Erdmann [this message]
2013-07-23 7:51 ` [gentoo-commits] proj/R_overlay:master commit in: roverlay/depres/ André Erdmann
-- strict thread matches above, loose matches on Subject: below --
2013-07-17 18:10 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-16 16:36 [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-07-15 22:31 ` [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-15 22:31 André Erdmann
2013-07-11 16:44 André Erdmann
2013-07-11 8:49 [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-07-11 8:45 ` [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-07-08 22:47 André Erdmann
2013-07-05 16:55 André Erdmann
2013-07-05 16:55 André Erdmann
2013-06-13 16:34 [gentoo-commits] proj/R_overlay:master " André Erdmann
2013-06-13 16:34 ` [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1374132598.e499fb1751df277f49df3abfbbd3a873762f8918.dywi@gentoo \
--to=dywi@mailerd.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox