Kodlama standartına uyalım commiti, harmless...

This commit is contained in:
S.Çağlar Onur
2005-06-16 13:13:18 +00:00
parent 4f4efaf0b5
commit a67893e21a
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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]
+1 -1
View File
@@ -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."""