Skip to content

Commit

Permalink
Don't use removeprefix in tools/unnamed.py (it worked locally...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Sep 19, 2022
1 parent 55ca2da commit 29fada7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/unnamed.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def read_string(file):
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)
Expand Down

0 comments on commit 29fada7

Please sign in to comment.