From a67893e21ac0619c0e8a4f15b58044e8f1d1505b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Thu, 16 Jun 2005 13:13:18 +0000 Subject: [PATCH] =?UTF-8?q?Kodlama=20standart=C4=B1na=20uyal=C4=B1m=20comm?= =?UTF-8?q?iti,=20harmless...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pisi/actionsapi/gnuconfig.py | 2 +- src/pisi/actionsapi/shell.py | 2 +- src/pisi/build.py | 2 +- src/pisi/installdb.py | 2 +- src/pisi/xmlfile.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pisi/actionsapi/gnuconfig.py b/src/pisi/actionsapi/gnuconfig.py index e926c9f0..789929a8 100644 --- a/src/pisi/actionsapi/gnuconfig.py +++ b/src/pisi/actionsapi/gnuconfig.py @@ -12,7 +12,7 @@ def gnuconfig_findnewest(): newer_location = {} for i in locations: - newer_location[i] = re.sub( '\'', '', string.split((cat( i ) | tr(str.rstrip) | grep ('^timestamp') | join), '=')[1]) + newer_location[i] = re.sub('\'', '', string.split((cat( i ) | tr(str.rstrip) | grep ('^timestamp') | join), '=')[1]) keys = newer_location.keys() keys.sort() diff --git a/src/pisi/actionsapi/shell.py b/src/pisi/actionsapi/shell.py index 16c5e343..e82d7557 100644 --- a/src/pisi/actionsapi/shell.py +++ b/src/pisi/actionsapi/shell.py @@ -4,7 +4,7 @@ import sys, re from itertools import izip, imap, count, ifilter, ifilterfalse -def cat( filename ): +def cat(filename): return file(filename).xreadlines() class grep: diff --git a/src/pisi/build.py b/src/pisi/build.py index 28fa8bee..48ca1b25 100644 --- a/src/pisi/build.py +++ b/src/pisi/build.py @@ -79,7 +79,7 @@ class PisiBuild: # check if source already cached destpath = fetch.filedest + "/" + fetch.filename if os.access(destpath, os.R_OK): - if util.md5_file(destpath)==self.spec.source.archiveMD5: + if util.md5_file(destpath) == self.spec.source.archiveMD5: ui.info('%s [cached]\n' % self.spec.source.archiveName) return diff --git a/src/pisi/installdb.py b/src/pisi/installdb.py index 61459a75..aa970489 100644 --- a/src/pisi/installdb.py +++ b/src/pisi/installdb.py @@ -36,7 +36,7 @@ def remove(name, version, release): d[key] = 'r' def purge(name, version, release): - util.remove_file(files_name( name, version, release)) + util.remove_file(files_name(name, version, release)) del d[key] diff --git a/src/pisi/xmlfile.py b/src/pisi/xmlfile.py index 8297a553..6b100073 100644 --- a/src/pisi/xmlfile.py +++ b/src/pisi/xmlfile.py @@ -35,7 +35,7 @@ def getChildText(node_s, tagpath): def getChildElts(node): """get only child elements""" - return filter(lambda x:x.nodeType==x.ELEMENT_NODE, node.childNodes) + return filter(lambda x:x.nodeType == x.ELEMENT_NODE, node.childNodes) def getNode(node, tagpath): """returns the *first* matching node for given tag path."""