diff --git a/gestion/darcs_send_changes.py b/gestion/darcs_send_changes.py index fbd686e3..410bb6de 100755 --- a/gestion/darcs_send_changes.py +++ b/gestion/darcs_send_changes.py @@ -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