Skip to content

Commit 914f636

Browse files
Update Python bindings example to Python 3 syntax (#978)
1 parent 526a071 commit 914f636

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/ref/bindings.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ <h2 id="python_api">Python API</h2>
173173
ext_vars={'OTHER_NAME': 'Bob'})
174174

175175
json_obj = json.loads(json_str)
176-
for person_id, person in json_obj.iteritems():
177-
print '%s is %s, greeted by "%s"' % (
176+
for person_id, person in json_obj.items():
177+
print('%s is %s, greeted by "%s"' % (
178178
person_id,
179179
person['name'],
180-
person['welcome'])</pre>
180+
person['welcome']))</pre>
181181
<div style="clear: both"></div>
182182
</div>
183183
</div>

0 commit comments

Comments
 (0)