Merge branch 'develop' into fix/prototyped-diff

This commit is contained in:
Griatch 2018-09-15 17:10:54 +02:00
commit ce4db6cbab
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
dbg = pdb.Pdb(stdout=sys.__stdout__)
#
# stopped at breakpoint. Use 'n' (next) to continue into the code.
#
dbg.set_trace()
# Start debugger, forcing it up one stack frame (otherwise `set_trace` will start # debugger at
# this point, not the actual code location)
dbg.set_trace(sys._getframe().f_back)

View file

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