summaryrefslogtreecommitdiff
path: root/tools/indenter
diff options
context:
space:
mode:
authorHello TMW <hello@themanaworld.org>2025-03-12 12:16:19 +0000
committerHello TMW <hello@themanaworld.org>2025-03-12 12:16:19 +0000
commitb0428330565e92350b002d969c90601f90dc47e5 (patch)
tree1f22af7cf0039ac80e032edad8876ae0e348867c /tools/indenter
parent3a0bfe045e24a8d769c60b513ade85505926be70 (diff)
parent88dfbd91ed22ab4ad98b2b9f0243f9d9faa9b49d (diff)
downloadtmwa-master.tar.gz
tmwa-master.tar.bz2
tmwa-master.tar.xz
tmwa-master.zip
Merge branch tmwa:master into masterHEADmaster
Diffstat (limited to 'tools/indenter')
-rwxr-xr-xtools/indenter7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/indenter b/tools/indenter
index 0d93543..ee000da 100755
--- a/tools/indenter
+++ b/tools/indenter
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# -*- encoding: utf-8
## indenter.py - Top-level indenter for all files
##
@@ -20,10 +20,9 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function
from collections import namedtuple
-import cStringIO
+import io
import string
import subprocess
import sys
@@ -114,7 +113,7 @@ class Reader(object):
self._column += 1
def string_reader(s, name='<string>', line=1, column=1):
- return Reader(name, cStringIO.StringIO(s), line, column)
+ return Reader(name, io.StringIO(s), line, column)
def take_while(b, r, s):
assert isinstance(b, bytearray)