testlib: Make TyCon normalization Python 2.6-compatible
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 29 Dec 2015 17:16:59 +0000 (18:16 +0100)
committerBen Gamari <ben@smart-cactus.org>
Tue, 29 Dec 2015 17:43:51 +0000 (18:43 +0100)
commita1e01b61d4e083ac4ed59c593c89970143986f1a
tree8c5c56b4690b4891420ffbb068d90dc02b8d9109
parentfcc76493c8b35001fc1b22738cc64ff9506e278a
testlib: Make TyCon normalization Python 2.6-compatible

D1629 introduced this normalization which was not Python 2.6 compatible
due to the use of the `flags` argument of `re.sub`. Fix this.

Test Plan: Validate

Reviewers: austin, thomie

Differential Revision: https://phabricator.haskell.org/D1718
testsuite/driver/testlib.py