diff options
Diffstat (limited to 'dev-util/gcc-python-plugin/files/gcc-python-plugin-python3-docs.diff')
-rw-r--r-- | dev-util/gcc-python-plugin/files/gcc-python-plugin-python3-docs.diff | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/dev-util/gcc-python-plugin/files/gcc-python-plugin-python3-docs.diff b/dev-util/gcc-python-plugin/files/gcc-python-plugin-python3-docs.diff deleted file mode 100644 index 4063eb9..0000000 --- a/dev-util/gcc-python-plugin/files/gcc-python-plugin-python3-docs.diff +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/generate-tables-of-passes-rst.py b/generate-tables-of-passes-rst.py -index 154276e..8bbf926 100644 ---- a/generate-tables-of-passes-rst.py -+++ b/generate-tables-of-passes-rst.py -@@ -18,6 +18,7 @@ - # We use this script to regenerate docs/tables-of-passes.rst - import gcc - import sys -+import six - - from gccutils import Table - -@@ -36,7 +37,7 @@ p_to_s = pass_properties_to_str - - def foo(t, ps, indent): - name = ps.name.replace('*', '\\*') -- t.add_row(('%s%s' % (u'> ' * indent, name), -+ t.add_row(('%s%s' % (six.u('> ') * indent, name), - p_to_s(ps.properties_required), - p_to_s(ps.properties_provided), - p_to_s(ps.properties_destroyed))) -@@ -89,8 +90,7 @@ for rootname, reflabel, ps in zip(('The lowering passes', - t = Table(['Pass Name', 'Required properties', 'Provided properties', 'Destroyed properties'], - sepchar='=') - foo(t, ps, 0) -- from StringIO import StringIO -- s = StringIO() -+ s = six.StringIO() - t.write(s) - for line in s.getvalue().splitlines(): - print(' ' + line.rstrip())
\ No newline at end of file |