[Checkins] SVN: Sandbox/adamg/ocql/trunk/src/ocql/ fixes to keep coverage happy

Adam Groszer agroszer at gmail.com
Fri Aug 8 05:24:46 EDT 2008


Log message for revision 89536:
  fixes to keep coverage happy

Changed:
  U   Sandbox/adamg/ocql/trunk/src/ocql/compiler/runnablequery.py
  U   Sandbox/adamg/ocql/trunk/src/ocql/parser/queryparser.py
  U   Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py

-=-
Modified: Sandbox/adamg/ocql/trunk/src/ocql/compiler/runnablequery.py
===================================================================
--- Sandbox/adamg/ocql/trunk/src/ocql/compiler/runnablequery.py	2008-08-08 09:14:09 UTC (rev 89535)
+++ Sandbox/adamg/ocql/trunk/src/ocql/compiler/runnablequery.py	2008-08-08 09:24:46 UTC (rev 89536)
@@ -13,6 +13,8 @@
 
 _marker = object()
 
+#these are here helper functions to debug compiled code
+
 def d_reduce(function, sequence, initializer=_marker):
     if initializer is _marker:
         rv = reduce(function, sequence)

Modified: Sandbox/adamg/ocql/trunk/src/ocql/parser/queryparser.py
===================================================================
--- Sandbox/adamg/ocql/trunk/src/ocql/parser/queryparser.py	2008-08-08 09:14:09 UTC (rev 89535)
+++ Sandbox/adamg/ocql/trunk/src/ocql/parser/queryparser.py	2008-08-08 09:24:46 UTC (rev 89536)
@@ -647,5 +647,4 @@
     def __call__(self, metadata):
         strg = self.context
         tree = parse(strg, metadata)
-        return Head(tree)
-        #return parse(strg, None)
\ No newline at end of file
+        return Head(tree)
\ No newline at end of file

Modified: Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py
===================================================================
--- Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py	2008-08-08 09:14:09 UTC (rev 89535)
+++ Sandbox/adamg/ocql/trunk/src/ocql/queryobject/queryobject.py	2008-08-08 09:24:46 UTC (rev 89536)
@@ -12,6 +12,14 @@
 
 #implement a traversable tree of queryobjects (parent, child, sibling, ....)
 
+# TODO: missing:
+#xi{Es}
+#xi{E1..E2}
+#I(Es)
+#K
+#==,
+#~==
+
 from zope.interface import implements
 from zope.location import locate, Location
 from zope.location.interfaces import ILocation
@@ -28,7 +36,7 @@
         locate(tree, self, 'tree')
 
     def __repr__(self):
-        return ('%s') % (self.tree) 
+        return ('%s') % (self.tree)
 
 class Child(Location):
     implements(IObjectQueryChild)
@@ -408,12 +416,4 @@
     implements(ILe)
 
 class Ge(Condition):
-    implements(IGe)
-
-# TODO: missing:
-    #xi{Es}
-    #xi{E1..E2}
-    #I(Es)
-    #K
-    #==,
-    #~==
\ No newline at end of file
+    implements(IGe)
\ No newline at end of file



More information about the Checkins mailing list