Daniel Garcia
22dfe005c0
(bsc#1226660, gh#PiotrDabkowski/Js2Py#323) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Js2Py?expand=0&rev=22
14 lines
530 B
Diff
14 lines
530 B
Diff
Index: Js2Py-0.74/js2py/constructors/jsobject.py
|
|
===================================================================
|
|
--- Js2Py-0.74.orig/js2py/constructors/jsobject.py
|
|
+++ Js2Py-0.74/js2py/constructors/jsobject.py
|
|
@@ -48,7 +48,7 @@ class ObjectMethods:
|
|
raise MakeError(
|
|
'TypeError',
|
|
'Object.getOwnPropertyDescriptor called on non-object')
|
|
- return obj.own.keys()
|
|
+ return list(obj.own.keys())
|
|
|
|
def create(obj):
|
|
if not (obj.is_object() or obj.is_null()):
|