ref: 29fada7d8c08fb04c9aee9408f6acb3cc44fad51
parent: 55ca2da25acc0598539eede5359f25f08223de2d
author: Rangi <[email protected]>
date: Sun Sep 18 19:56:11 EDT 2022
Don't use removeprefix in tools/unnamed.py (it worked locally...)
--- a/tools/unnamed.py
+++ b/tools/unnamed.py
@@ -48,8 +48,8 @@
if args.rootdir:
for line in subprocess.Popen(['make', '-C', args.rootdir, '-s', '-p', 'DEBUG=1'],
stdout=subprocess.PIPE).stdout.read().decode().split('\n'):
- if line.startswith('pokecrystal_obj'):
- objects = line.removeprefix('pokecrystal_obj').lstrip().removeprefix(':=').strip().split()
+ if line.startswith('pokecrystal_obj :='):
+ objects = line[len('pokecrystal_obj :='):].strip().split()
break
else:
print('Error: Object files not found!', file=sys.stderr)