[Pkg-bazaar-commits] ./bzr/unstable r575: - cleanup imports

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:18:57 UTC 2009


------------------------------------------------------------
revno: 575
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-05-27 14:08:47 +1000
message:
  - cleanup imports
modified:
  bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py	2005-05-27 03:44:32 +0000
+++ b/bzrlib/commands.py	2005-05-27 04:08:47 +0000
@@ -757,7 +757,7 @@
     
     def run(self, name_pattern):
         from bzrlib.atomicfile import AtomicFile
-        import codecs, os.path
+        import os.path
 
         b = Branch('.')
         ifn = b.abspath('.bzrignore')
@@ -771,6 +771,9 @@
         else:
             igns = ''
 
+        # TODO: If the file already uses crlf-style termination, maybe
+        # we should use that for the newly added lines?
+
         if igns and igns[-1] != '\n':
             igns += '\n'
         igns += name_pattern + '\n'



More information about the Pkg-bazaar-commits mailing list