Backed out changeset 2873be3659a3 (bug 1335873)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 01 Mar 2017 17:34:57 +0100
changeset 345410 90ac7081a45fbccba3cb35e0b49f098b50d0f11c
parent 345409 a0d02ea2773152926486f5b39f6fe83954e5c400
child 345411 d2b0ed8f69e0c58328b772d235d4202103af3497
push id31437
push usercbook@mozilla.com
push dateThu, 02 Mar 2017 13:00:04 +0000
treeherdermozilla-central@180a160ae22a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1335873
milestone54.0a1
backs out2873be3659a3841a44d652f2e84f25983c59c4fa
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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__)