Rev 2453: Remove a superfluous 'else' (recommended by Martin) in http://bzr.arbash-meinel.com/branches/bzr/0.16-dev/rename_directory_105479

John Arbash Meinel john at arbash-meinel.com
Sat Apr 21 15:40:20 BST 2007


At http://bzr.arbash-meinel.com/branches/bzr/0.16-dev/rename_directory_105479

------------------------------------------------------------
revno: 2453
revision-id: john at arbash-meinel.com-20070421143950-glyo2gbmjwopp2w7
parent: john at arbash-meinel.com-20070420203953-qljfem7wrpujktl9
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: rename_directory_105479
timestamp: Sat 2007-04-21 09:39:50 -0500
message:
  Remove a superfluous 'else' (recommended by Martin)
modified:
  bzrlib/dirstate.py             dirstate.py-20060728012006-d6mvoihjb3je9peu-1
-------------- next part --------------
=== modified file 'bzrlib/dirstate.py'
--- a/bzrlib/dirstate.py	2007-04-20 17:57:13 +0000
+++ b/bzrlib/dirstate.py	2007-04-21 14:39:50 +0000
@@ -2229,11 +2229,10 @@
                 raise AssertionError(
                     "no parent entry for: %s in tree %s"
                     % (this_path, tree_index))
-            else:
-                if parent_entry[1][tree_index][0] != 'd':
-                    raise AssertionError(
-                        "Parent entry for %s is not marked as a valid"
-                        " directory. %s" % (this_path, parent_entry,))
+            if parent_entry[1][tree_index][0] != 'd':
+                raise AssertionError(
+                    "Parent entry for %s is not marked as a valid"
+                    " directory. %s" % (this_path, parent_entry,))
 
         # For each file id, for each tree: either
         # the file id is not present at all; all rows with that id in the



More information about the bazaar-commits mailing list