Rev 2623: self._names.discard wins over conditional remove - thanks Aaron. in http://people.ubuntu.com/~robertc/baz2.0/file-collection

Robert Collins robertc at robertcollins.net
Thu Jul 19 07:40:48 BST 2007


At http://people.ubuntu.com/~robertc/baz2.0/file-collection

------------------------------------------------------------
revno: 2623
revision-id: robertc at robertcollins.net-20070719064046-3mbyfeb6ioaw4htk
parent: robertc at robertcollins.net-20070719063913-l1afgl876zpaysf4
committer: Robert Collins <robertc at robertcollins.net>
branch nick: file-collection
timestamp: Thu 2007-07-19 16:40:46 +1000
message:
  self._names.discard wins over conditional remove - thanks Aaron.
modified:
  bzrlib/file_names.py           file_collection.py-20070714100753-j2zz4ahtk331k5zm-1
=== modified file 'bzrlib/file_names.py'
--- a/bzrlib/file_names.py	2007-07-19 03:37:17 +0000
+++ b/bzrlib/file_names.py	2007-07-19 06:40:46 +0000
@@ -65,8 +65,7 @@
         """Load the names from the transport."""
         self._names = set(self._transport.get_bytes(
             self._index_name).split('\n'))
-        if '' in self._names:
-            self._names.remove('')
+        self._names.discard('')
 
     def names(self):
         """What are the names in this names?"""



More information about the bazaar-commits mailing list