Skip to content

Commit 9de45d5

Browse files
committed
Merge pull request julien-duponchelle#83 from darioush/python26
Dict comprehension to dict() for py2.6 support
2 parents 044085b + 3da71a1 commit 9de45d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rethinkdb_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def main():
5555
if not binlogevent.schema == "employees":
5656
continue
5757

58-
vals = {str(k): str(v) for k, v in row["values"].iteritems()}
58+
vals = dict((str(k), str(v)) for k, v in row["values"].iteritems())
5959
rethinkdb.table(binlogevent.table).insert(vals).run()
6060

6161
stream.close()

0 commit comments

Comments
 (0)