mirror of https://github.com/morpheus65535/bazarr
20 lines
278 B
Python
20 lines
278 B
Python
|
# this is based on jsarray.py
|
||
|
|
||
|
import six
|
||
|
|
||
|
if six.PY3:
|
||
|
xrange = range
|
||
|
import functools
|
||
|
|
||
|
|
||
|
def to_arr(this):
|
||
|
"""Returns Python array from Js array"""
|
||
|
return [this.get(str(e)) for e in xrange(len(this))]
|
||
|
|
||
|
|
||
|
ARR_STACK = set({})
|
||
|
|
||
|
|
||
|
class ArrayBufferPrototype:
|
||
|
pass
|