Backed out changeset 2873be3659a3 (bug 1335873)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 01 Mar 2017 17:34:57 +0100
changeset 374437 90ac7081a45fbccba3cb35e0b49f098b50d0f11c
parent 374436 a0d02ea2773152926486f5b39f6fe83954e5c400
child 374438 d2b0ed8f69e0c58328b772d235d4202103af3497
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1335873
milestone54.0a1
backs out2873be3659a3841a44d652f2e84f25983c59c4fa
Backed out changeset 2873be3659a3 (bug 1335873)
build/mach_bootstrap.py
--- a/build/mach_bootstrap.py
+++ b/build/mach_bootstrap.py
@@ -403,18 +403,17 @@ class ImportHook(object):
         # loading, remove the .pyc/.pyo file, and reload the module.
         # Since we already loaded the .pyc/.pyo module, if it had side
         # effects, they will have happened already, and loading the module
         # with the same name, from another directory may have the same side
         # effects (or different ones). We assume it's not a problem for the
         # python modules under our source directory (either because it
         # doesn't happen or because it doesn't matter).
         if not os.path.exists(module.__file__[:-1]):
-            if os.path.exists(module.__file__):
-                os.remove(module.__file__)
+            os.remove(module.__file__)
             del sys.modules[module.__name__]
             module = self(name, globals, locals, fromlist, level)
 
         return module
 
 
 # Install our hook
 __builtin__.__import__ = ImportHook(__builtin__.__import__)