Rev 4258: Fix misleading signature. in http://bazaar.launchpad.net/~vila/bzr/cleanup.various/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Apr 9 08:47:03 BST 2009


At http://bazaar.launchpad.net/~vila/bzr/cleanup.various/

------------------------------------------------------------
revno: 4258
revision-id: v.ladeuil+lp at free.fr-20090409074701-fc9i9bxhzjwr8pa1
parent: pqm at pqm.ubuntu.com-20090406052052-fyud2y3vlghiasig
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: various
timestamp: Thu 2009-04-09 09:47:01 +0200
message:
  Fix misleading signature.
  
  * bzrlib/inventory.py:
  (Inventory.has_filename): 'names' parameter renamed to 'filename'
  to conform with all other implementations.
-------------- next part --------------
=== modified file 'bzrlib/inventory.py'
--- a/bzrlib/inventory.py	2009-04-03 05:17:24 +0000
+++ b/bzrlib/inventory.py	2009-04-09 07:47:01 +0000
@@ -1255,8 +1255,8 @@
 
         return parent.file_id
 
-    def has_filename(self, names):
-        return bool(self.path2id(names))
+    def has_filename(self, filename):
+        return bool(self.path2id(filename))
 
     def has_id(self, file_id):
         return (file_id in self._byid)



More information about the bazaar-commits mailing list