We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33aa4dc commit e7b585aCopy full SHA for e7b585a
1 file changed
wolframclient/language/array.py
@@ -1,9 +1,10 @@
1
from __future__ import absolute_import, print_function, unicode_literals
2
3
+import struct
4
+
5
from wolframclient.exception import WolframLanguageException
6
from wolframclient.serializers.wxfencoder import constants
7
from wolframclient.utils.encoding import force_bytes
-import struct
8
9
try:
10
from collections.abc import Sequence
@@ -28,7 +29,9 @@ def _valid_type_or_fail(self, type):
28
29
)
30
31
def tobytes(self):
- return struct.pack(b'<%i%s' % (len(self), force_bytes(self.struct.format[1])), *self.array)
32
+ return struct.pack(
33
+ b"<%i%s" % (len(self), force_bytes(self.struct.format[1])), *self.array
34
+ )
35
36
def __getitem__(self, k):
37
return self.array[k]
0 commit comments