Permalink
Browse files

replaced dict comprehension with 2.6 compat version

  • Loading branch information...
1 parent a69919e commit 46f5ec4683bf7668fd749e69c9df40a819a39dee @technige technige committed Mar 3, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/py2neo/neo4j.py
View
@@ -38,10 +38,10 @@ def _flatten(*args, **kwargs):
data = {}
for arg in args:
try:
- data.update({
- (arg.__class__.__name__ + "." + key, value)
- for key, value in arg.__dict__.items()
- })
+ data.update(dict([
+ (arg.__class__.__name__ + "." + key, value)
+ for key, value in arg.__dict__.items()
+ ]))
except AttributeError:
data.update(arg)
data.update(kwargs)

0 comments on commit 46f5ec4

Please sign in to comment.