[doc] Use string debug mode in debugged docstring stable
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 07 Nov 2013 11:20:59 +0100
branchstable
changeset 9325 a4fc09836329
parent 9324 a5ce068143ad
child 9326 9d145b4c4e53
[doc] Use string debug mode in debugged docstring
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