mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-26 18:20:22 +01:00
Removed some dead code
This commit is contained in:
parent
9a5b0e41ac
commit
12c7609802
@ -263,7 +263,7 @@ class BuildContext(Context.Context):
|
||||
Logs.info("Waf: Leaving directory `%s'" % self.variant_dir)
|
||||
try:
|
||||
self.producer.bld = None
|
||||
self.producer = None
|
||||
del self.producer
|
||||
except AttributeError:
|
||||
pass
|
||||
self.post_build()
|
||||
|
@ -54,8 +54,8 @@ except ImportError:
|
||||
|
||||
class threading(object):
|
||||
"""
|
||||
A fake threading class for platforms lacking the threading module.
|
||||
Use ``waf -j1`` on those platforms
|
||||
A fake threading class for platforms lacking the threading module.
|
||||
Use ``waf -j1`` on those platforms
|
||||
"""
|
||||
pass
|
||||
class Lock(object):
|
||||
@ -65,16 +65,6 @@ except ImportError:
|
||||
def release(self):
|
||||
pass
|
||||
threading.Lock = threading.Thread = Lock
|
||||
else:
|
||||
run_old = threading.Thread.run
|
||||
def run(*args, **kwargs):
|
||||
try:
|
||||
run_old(*args, **kwargs)
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
raise
|
||||
except Exception:
|
||||
sys.excepthook(*sys.exc_info())
|
||||
threading.Thread.run = run
|
||||
|
||||
SIG_NIL = 'SIG_NIL_SIG_NIL_'.encode()
|
||||
"""Arbitrary null value for hashes. Modify this value according to the hash function in use"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user