1. Luke Plant
  2. django-piston

Commits

Jesper Nøhr  committed 3f9c7ba

updating user handler a bit, basic issue handler, optimized _dict in emitter

  • Participants
  • Parent commits 8ba536f
  • Branches default

Comments (0)

Files changed (1)

File piston/emitters.py

View file
             return [ _any(v) for v in data ]
             
         def _dict(data):
-            ret = { }
-            
-            for k, v in data.iteritems():
-                ret[k] = _any(v)
-                
-            return ret
+            return dict([ (k, _any(v)) for k, v in data.iteritems() ])
             
         return _any(self.data)