Converted wmlindent to Python 3

This commit is contained in:
Elvish_Hunter 2015-09-22 23:33:04 +02:00
parent 1f5d713ee1
commit 526d745dfb

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""\
wmlindent - re-indent WML in a uniform way.
@ -61,11 +61,8 @@ if there's an indent open at end of file or if a closer occurs with
indent already zero; these two conditions strongly suggest unbalanced WML.
"""
from __future__ import print_function, unicode_literals, division
from future_builtins import filter, map, zip
import sys, os, getopt, filecmp, re, codecs
from wesnoth import wmltools
from wesnoth import wmltools3 as wmltools
closer_prefixes = ["{NEXT "]
opener_prefixes = ["{FOREACH "]