OILS / opy / fix.sh View on Github | oilshell.org

15 lines, 6 significant
1#!/usr/bin/env bash
2#
3# Usage:
4# ./fix.sh <function name>
5
6set -o nounset
7set -o pipefail
8set -o errexit
9
10# -w to write it back
11print() {
12 2to3 --fix print "$@"
13}
14
15"$@"