This is an automated email from the ASF dual-hosted git repository.
dkuppitz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/master by this push:
new 90c5e2f CTR: Updated Python bindings syntax in docs pre-processor
90c5e2f is described below
commit 90c5e2f66c7d6ae15753599144fe6ace78b847e0
Author: Daniel Kuppitz <[email protected]>
AuthorDate: Fri Jan 4 12:29:20 2019 -0700
CTR: Updated Python bindings syntax in docs pre-processor
---
docs/preprocessor/awk/init-code-blocks.awk | 2 +-
docs/preprocessor/awk/language-variants.awk | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/docs/preprocessor/awk/init-code-blocks.awk
b/docs/preprocessor/awk/init-code-blocks.awk
index 97cd683..466cb90 100644
--- a/docs/preprocessor/awk/init-code-blocks.awk
+++ b/docs/preprocessor/awk/init-code-blocks.awk
@@ -100,7 +100,7 @@ BEGIN {
if (delimiter == 2 && !($0 ~ /^pb\([0-9]*\); '----'/)) {
switch (lang) {
case "python":
- print "processTraversal(\"\"\"" gensub("\\('id',([0-9]+)\\)", "\\1",
"g") "\"\"\", jython, groovy)"
+ print "processTraversal(\"\"\""
gensub("Bindings\\.of\\('id',([0-9]+)\\)", "\\1", "g") "\"\"\", jython, groovy)"
break
default:
print
diff --git a/docs/preprocessor/awk/language-variants.awk
b/docs/preprocessor/awk/language-variants.awk
index 5429070..bdbe6c7 100644
--- a/docs/preprocessor/awk/language-variants.awk
+++ b/docs/preprocessor/awk/language-variants.awk
@@ -40,7 +40,8 @@ BEGIN {
gsub(/^gremlin>/, ">>>")
gsub(/^==>/, "")
$0 = gensub(/processTraversal\("""(.*)"""\, jython, groovy)/, "\\1", 1)
- print gensub("g\\.V\\(([^\\)]+)", "g.V(('id',\\1)", "g")
+ $0 = gensub("g\\.V\\(([^\\)]+)", "g.V(Bindings\\.of('id',\\1)", "g")
+ print
gensub("g\\.V\\(Bindings.of\\('id',(Bindings.of\\([^\\)]+\\))\\)", "g.V(\\1)",
"g")
break
default:
print