On vite les retours la ligne qui tranent la fin des fichiers

darcs-hash:20071216195630-61eff-590690dd8fb1e0dd6a4a8f4dc009043d94c82272.gz
This commit is contained in:
Stephane Glondu 2007-12-16 20:56:30 +01:00
parent 7b260d001c
commit ad48786dd5

View file

@ -80,7 +80,7 @@ def get_patch_properties(hash):
hostname = commands.getoutput('hostname -s')
shortrepo = os.path.basename(cwd)
if os.path.exists(ID_FILE):
id = file(ID_FILE).readlines()[0]
id = file(ID_FILE).readlines()[0].strip()
else:
id = shortrepo
return { 'author': prop.attrib['author'],
@ -219,7 +219,7 @@ if __name__ == "__main__":
if not from_hash:
if os.path.exists(LAST_SEEN_FILE):
f = open(LAST_SEEN_FILE)
from_hash = f.read().strip()
from_hash = f.readlines()[0].strip()
f.close()
else:
from_hash = None