--- 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 {}