OSDN Git Service
(root)
/
meshio
/
pymeshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix version
[meshio/pymeshio.git]
/
pymeshio
/
common.py
diff --git
a/pymeshio/common.py
b/pymeshio/common.py
index
e67580d
..
698b5f9
100644
(file)
--- a/
pymeshio/common.py
+++ b/
pymeshio/common.py
@@
-225,7
+225,7
@@
class ParseException(Exception):
pass
\r
\r
\r
pass
\r
\r
\r
-def readall(path
: str) -> bytes
:
\r
+def readall(path
)
:
\r
with open(path, "rb") as f:
\r
return f.read()
\r
\r
with open(path, "rb") as f:
\r
return f.read()
\r
\r
@@
-234,7
+234,7
@@
class BinaryLoader(object):
def __init__(self, io):
\r
self.io=io
\r
\r
def __init__(self, io):
\r
self.io=io
\r
\r
- def unpack(self, fmt
: str, size: int) -> "read value as format"
:
\r
+ def unpack(self, fmt
, size)
:
\r
result=struct.unpack(fmt, self.io.read(size))
\r
return result[0]
\r
\r
result=struct.unpack(fmt, self.io.read(size))
\r
return result[0]
\r
\r