Removed a couple of sneaky print statements

This commit is contained in:
Harry Marr 2010-07-25 15:02:37 +01:00
parent c2163ecee5
commit be651caa68

View File

@ -114,13 +114,11 @@ class Q(object):
value, field_js = self._build_op_js(op, key, value, value_name) value, field_js = self._build_op_js(op, key, value, value_name)
js_scope[value_name] = value js_scope[value_name] = value
js.append(field_js) js.append(field_js)
print ' && '.join(js)
return ' && '.join(js) return ' && '.join(js)
def _build_op_js(self, op, key, value, value_name): def _build_op_js(self, op, key, value, value_name):
"""Substitute the values in to the correct chunk of Javascript. """Substitute the values in to the correct chunk of Javascript.
""" """
print op, key, value, value_name
if isinstance(value, RE_TYPE): if isinstance(value, RE_TYPE):
# Regexes are handled specially # Regexes are handled specially
if op.strip('$') == 'ne': if op.strip('$') == 'ne':