mirror of
https://github.com/SWG-Source/swg-main.git
synced 2026-01-15 19:04:18 -05:00
updated to python3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
|
||||
from os import walk, path, makedirs
|
||||
from subprocess import PIPE, Popen
|
||||
@@ -34,7 +34,7 @@ def build_table(type, objs):
|
||||
p = Popen(crc_call, stdin=PIPE, stdout=PIPE)
|
||||
|
||||
for obj in sorted(objs):
|
||||
p.stdin.write(obj + '\n')
|
||||
p.stdin.write('{}\n'.format(obj).encode('utf-8'))
|
||||
|
||||
p.communicate()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
|
||||
from os import path, makedirs
|
||||
from subprocess import PIPE, Popen
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/python3
|
||||
|
||||
from os import walk, path, makedirs
|
||||
from subprocess import PIPE, Popen
|
||||
@@ -39,6 +39,6 @@ crc_call = ['./tools/buildCrcStringTable.pl', '-t', tabfile, ifffile]
|
||||
p = Popen(crc_call, stdin=PIPE, stdout=PIPE)
|
||||
|
||||
for obj in allobjs:
|
||||
p.stdin.write(obj + '\n')
|
||||
p.stdin.write('{}\n'.format(obj).encode('utf-8'))
|
||||
|
||||
p.communicate()
|
||||
|
||||
Reference in New Issue
Block a user