[Pkg-bazaar-commits] ./bzr-builddeb/trunk r211: There is no need to loop rstrip.

James Westby jw+debian at jameswestby.net
Thu May 15 13:29:37 UTC 2008


------------------------------------------------------------
revno: 211
committer: James Westby <jw+debian at jameswestby.net>
branch nick: trunk
timestamp: Sat 2008-01-26 10:11:55 +0000
message:
  There is no need to loop rstrip.
modified:
  import_dsc.py
-------------- next part --------------
=== modified file 'import_dsc.py'
--- a/import_dsc.py	2008-01-25 18:15:53 +0000
+++ b/import_dsc.py	2008-01-26 10:11:55 +0000
@@ -140,8 +140,7 @@
             continue
         relative_path = member.name
         relative_path = osutils.normpath(relative_path)
-        while relative_path.startswith('/'):
-          relative_path = relative_path.lstrip('/')
+        relative_path = relative_path.lstrip('/')
         if prefix is not None:
             relative_path = relative_path[len(prefix)+1:]
         if relative_path == '' or relative_path == '.':



More information about the Pkg-bazaar-commits mailing list