[Pkg-python-debian-commits] r79 trunk: support different kind of line endings

Stefano Zacchiroli zack at bononia.it
Mon Aug 20 17:37:07 UTC 2007


------------------------------------------------------------
revno: 79
committer: Stefano Zacchiroli <zack at bononia.it>
branch nick: pkg-python-debian
timestamp: Mon 2007-08-20 19:37:07 +0200
message:
  support different kind of line endings
modified:
  debian_bundle/debfile.py
-------------- next part --------------
=== modified file 'debian_bundle/debfile.py'
--- a/debian_bundle/debfile.py	2007-08-20 17:33:31 +0000
+++ b/debian_bundle/debfile.py	2007-08-20 17:37:07 +0000
@@ -168,7 +168,7 @@
         sums = {}
         for line in md5_file.readlines():
             # we need to support spaces in filenames, .split() is not enough
-            md5, fname = line.rstrip('\n').split(None, 1)
+            md5, fname = line.rstrip('\r\n').split(None, 1)
             sums[fname] = md5
         md5_file.close()
         return sums



More information about the pkg-python-debian-commits mailing list