PR libstdc++/86112 fix printers for Python 2.6
commit2528fb535b26a25eea3dd62f3a80d84c133f9bb9
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jun 2018 21:06:56 +0000 (25 21:06 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Jun 2018 21:06:56 +0000 (25 21:06 +0000)
treedf99be54e41d85eca6b1263117354bf0fc43d4a8
parentb95bdab0d76769f6cf5ad7f1d2a3eac134784cf3
PR libstdc++/86112 fix printers for Python 2.6

Dict comprehensions are only supported since Python 2.7, so use an
alternative syntax that is backwards compatible.

PR libstdc++/86112
* python/libstdcxx/v6/printers.py (add_one_template_type_printer):
Replace dict comprehension.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@262116 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py