migration.py
branchstable
changeset 6226 dbb7ad04b963
parent 6221 a5cc5dc15f9d
child 6362 1b5fc8581437
--- a/migration.py	Mon Sep 13 14:48:29 2010 +0200
+++ b/migration.py	Mon Sep 13 16:46:52 2010 +0200
@@ -359,7 +359,7 @@
             import doctest
             doctest.testfile(migrscript, module_relative=False,
                              optionflags=doctest.ELLIPSIS, globs=scriptlocals)
-        del self._context_stack[-1]
+        self._context_stack.pop()
 
     def cmd_option_renamed(self, oldname, newname):
         """a configuration option has been renamed"""
@@ -390,10 +390,8 @@
             cubes = (cubes,)
         origcubes = self.config.cubes()
         newcubes = [p for p in self.config.expand_cubes(cubes)
-                       if not p in origcubes]
+                    if not p in origcubes]
         if newcubes:
-            for cube in cubes:
-                assert cube in newcubes
             self.config.add_cubes(newcubes)
         return newcubes