summaryrefslogtreecommitdiff
path: root/to3.sh
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2009-03-13 18:09:23 -0400
committerLeonard Richardson <leonard.richardson@canonical.com>2009-03-13 18:09:23 -0400
commitcafaed172c6fd8b0668f1365bbb97331ca4fa1dc (patch)
tree35effc997e715cbb2c6577232e60c01e634dc77c /to3.sh
Initial (manual) import.
Diffstat (limited to 'to3.sh')
-rwxr-xr-xto3.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/to3.sh b/to3.sh
new file mode 100755
index 0000000..60c9b7d
--- /dev/null
+++ b/to3.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+mkdir python3
+for i in BeautifulSoup*.py
+do
+ cp $i python3/
+ 2to3-3.0 -x next $i | patch -p0 python3/$i
+ cp python3/$i python3/$i.orig
+ patch -p0 python3/$i < $i.3.diff
+done \ No newline at end of file