meld r1130 - trunk
- From: kaiw svn gnome org
- To: svn-commits-list gnome org
- Subject: meld r1130 - trunk
- Date: Tue, 13 Jan 2009 07:58:03 +0000 (UTC)
Author: kaiw
Date: Tue Jan 13 07:58:03 2009
New Revision: 1130
URL: http://svn.gnome.org/viewvc/meld?rev=1130&view=rev
Log:
Remove unused all(), look(), and ilook() functions from misc
Modified:
trunk/misc.py
Modified: trunk/misc.py
==============================================================================
--- trunk/misc.py (original)
+++ trunk/misc.py Tue Jan 13 07:58:03 2009
@@ -119,21 +119,6 @@
# no common path. empty names get changed to "[None]"
return map( lambda x: x or _("[None]"), basenames)
-def look(s, o):
- """Return a list of attributes in 'o' which contain the string 's'
- """
- return filter(lambda x:x.find(s)!=-1, dir(o))
-
-def ilook(s, o):
- """Return a list of attributes in 'o' which contain the string 's' ignoring case.
- """
- return filter(lambda x:x.lower().find(s)!=-1, dir(o))
-
-def all(o):
- """Return a list of all the attributes in 'o' along with their values
- """
- return "\n".join( ["%s\t%s" % (x,getattr(o,x)) for x in dir(o)] )
-
def read_pipe_iter(command, errorstream, yield_interval=0.1, workdir=None):
"""Read the output of a shell command iteratively.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]