Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Commit

Permalink
fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Sep 24, 2017
1 parent 98da3ce commit 2032149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pysqllike/translation/node_visitor_translator.py
Expand Up @@ -21,14 +21,15 @@ class CodeNodeVisitor(ast.NodeVisitor):
import ast
import inspect
import textwrap
from pysqllike.translation.node_visitor_translator import CodeNodeVisitor
def myjob(input):
iter = input.select (input.age, input.nom, age2 = input.age2*input.age2)
wher = iter.where( (iter.age > 60).Or(iter.age < 25))
return wher
code = inspect.getsource(myjob)
code = textwrap.dedent(inspect.getsource(myjob))
node = ast.parse(code)
v = CodeNodeVisitor()
v.visit(node)
Expand Down

0 comments on commit 2032149

Please sign in to comment.