Merge branch 'develop' into fix/prototyped-diff

This commit is contained in:
Griatch 2018-09-15 17:10:54 +02:00
commit 174113b9ab
2 changed files with 6 additions and 7 deletions

View file

@ -365,7 +365,6 @@ def set_trace(debugger="auto", term_size=(140, 40)):
import pdb import pdb
dbg = pdb.Pdb(stdout=sys.__stdout__) dbg = pdb.Pdb(stdout=sys.__stdout__)
# # Start debugger, forcing it up one stack frame (otherwise `set_trace` will start # debugger at
# stopped at breakpoint. Use 'n' (next) to continue into the code. # this point, not the actual code location)
# dbg.set_trace(sys._getframe().f_back)
dbg.set_trace()

View file

@ -664,9 +664,9 @@ def validate_lockstring(lockstring):
if no error was found. if no error was found.
""" """
global _LOCKHANDLER global _LOCK_HANDLER
if not _LOCKHANDLER: if not _LOCK_HANDLER:
_LOCKHANDLER = LockHandler(_ObjDummy()) _LOCK_HANDLER = LockHandler(_ObjDummy())
return _LOCK_HANDLER.validate(lockstring) return _LOCK_HANDLER.validate(lockstring)