# HG changeset patch # User Denis Laxalde # Date 1383819659 -3600 # Node ID a4fc09836329d3f6565b5e1aa2f69e66df666375 # Parent a5ce068143ad7cfd93be03a683adb778b5cd475b [doc] Use string debug mode in debugged docstring diff -r a5ce068143ad -r a4fc09836329 server/__init__.py --- a/server/__init__.py Fri Oct 25 12:23:06 2013 +0200 +++ b/server/__init__.py Thu Nov 07 11:20:59 2013 +0100 @@ -105,13 +105,13 @@ It can be used either as a context manager: - >>> with debugged(server.DBG_RQL | server.DBG_REPO): + >>> with debugged('DBG_RQL | DBG_REPO'): ... # some code in which you want to debug repository activity, ... # seing information about RQL being executed an repository events. or as a function decorator: - >>> @debugged(server.DBG_RQL | server.DBG_REPO) + >>> @debugged('DBG_RQL | DBG_REPO') ... def some_function(): ... # some code in which you want to debug repository activity, ... # seing information about RQL being executed an repository events