[c-c exlog] fix code and documentation stable
authorStephanie Marcu <stephanie.marcu@logilab.fr>
Wed, 16 Jun 2010 09:30:30 +0200
branchstable
changeset 5755 ca9e1c9123d7
parent 5751 1e5ef464cade
child 5756 ab03e4adb4f1
[c-c exlog] fix code and documentation
devtools/devctl.py
doc/book/en/devrepo/profiling.rst
--- a/devtools/devctl.py	Tue Jun 15 18:00:30 2010 +0200
+++ b/devtools/devctl.py	Wed Jun 16 09:30:30 2010 +0200
@@ -650,7 +650,7 @@
             except OSError, ex:
                 raise BadCommandUsage("can't open rql log file %s: %s"
                                       % (filepath, ex))
-            for lineno, line in enumerate(file):
+            for lineno, line in enumerate(stream):
                 if not ' WHERE ' in line:
                     continue
                 try:
--- a/doc/book/en/devrepo/profiling.rst	Tue Jun 15 18:00:30 2010 +0200
+++ b/doc/book/en/devrepo/profiling.rst	Wed Jun 16 09:30:30 2010 +0200
@@ -26,7 +26,7 @@
 
 .. sourcecode:: sh
 
-    $ cubicweb-ctl exlog < ~/myapp-rql.log
+    $ cubicweb-ctl exlog ~/myapp-rql.log
     0.07 50 Any A WHERE X eid %(x)s, X firstname A {}
     0.05 50 Any A WHERE X eid %(x)s, X lastname A {}
     0.01 1 Any X,AA ORDERBY AA DESC WHERE E eid %(x)s, E employees X, X modification_date AA {}