#!/usr/bin/env python """usage: %s file... Upgrades a kid template from version 0.5 to 0.6. The previous version of each file is backed up to "file-0.5". It is recommended that """ import sys import re from os.path import exists from shutil import move, copymode ns_exp = re.compile(r'http://naeblis.cx/ns/kid#') omit_exp = re.compile(r'py:omit=') brace_exp = re.compile(r""" (?