mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-04-23 21:14:49 +00:00
New Lz4 Api
print ( ) work on pyton 3.8 for me
This commit is contained in:
parent
3295132946
commit
3e9e5c86c0
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
import sys, lz4
|
||||
import sys, lz4 ,lz4.block
|
||||
from struct import unpack as up
|
||||
|
||||
def lz4_compress(data):
|
||||
|
@ -19,7 +19,7 @@ def split_binary(data):
|
|||
|
||||
def main(argc, argv):
|
||||
if argc != 3:
|
||||
print 'Usage: %s in outdir' % argv[0]
|
||||
print ('Usage: %s in outdir' % argv[0])
|
||||
return 1
|
||||
with open(argv[1], 'rb') as f:
|
||||
data = f.read()
|
||||
|
@ -30,4 +30,4 @@ def main(argc, argv):
|
|||
return 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(len(sys.argv), sys.argv))
|
||||
sys.exit(main(len(sys.argv), sys.argv))
|
||||
|
|
Loading…
Add table
Reference in a new issue