kuuko pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=2c6f7253bbc5a226695be2e5c37498ddebe25864

commit 2c6f7253bbc5a226695be2e5c37498ddebe25864
Author: Kai Huuhko <kai.huu...@gmail.com>
Date:   Mon Apr 14 01:12:49 2014 +0300

    Code cleanup: Dictionary creation could be rewritten as a dictionary literal
---
 efl/elementary/web.pyx | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/efl/elementary/web.pyx b/efl/elementary/web.pyx
index 83199b4..f0c2e16 100644
--- a/efl/elementary/web.pyx
+++ b/efl/elementary/web.pyx
@@ -189,14 +189,11 @@ def _web_load_frame_error_conv(uintptr_t addr):
     cdef Elm_Web_Frame_Load_Error *err = <Elm_Web_Frame_Load_Error *>addr
     if err == NULL:
         return None
-    ret = {
-        "code": err.code,
-        "is_cancellation": bool(err.is_cancellation),
-        }
-    ret["domain"] = _ctouni(err.domain) if err.domain else None
-    ret["description"] = _ctouni(err.description) if err.description else None
-    ret["failing_url"] = _ctouni(err.failing_url) if err.failing_url else None
-    ret["frame"] = object_from_instance(err.frame) if err.frame else None
+    ret = {"code": err.code, "is_cancellation": bool(err.is_cancellation),
+           "domain": _ctouni(err.domain) if err.domain else None,
+           "description": _ctouni(err.description) if err.description else 
None,
+           "failing_url": _ctouni(err.failing_url) if err.failing_url else 
None,
+           "frame": object_from_instance(err.frame) if err.frame else None}
 
     return ret
 

-- 


Reply via email to