summaryrefslogtreecommitdiff
path: root/tools/palfix.py
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2022-03-14 19:38:06 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2022-03-14 19:38:06 -0400
commit61faca1f917043e2ec9c9a2ba1d6e88adcca0552 (patch)
treea14f4d868d37129fa72278b404b3222d0d752235 /tools/palfix.py
parentcfa47e8c78442a5970661ed1aaca472f90a89d8f (diff)
Remove pokemontools and gfx.py; update PyPNG and standardize on Python 3
Diffstat (limited to 'tools/palfix.py')
-rwxr-xr-xtools/palfix.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/palfix.py b/tools/palfix.py
index 8d53d35e7..2ecd3236d 100755
--- a/tools/palfix.py
+++ b/tools/palfix.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@@ -9,10 +9,9 @@ sprites) will become indexed, with a palette sorted {white, light color, dark
color, black}. Grayscale images will become two-bit grayscale.
"""
-from __future__ import print_function
-
import sys
-from pokemontools import png
+
+import png
def rgb8_to_rgb5(c):
r, g, b = c