]> granicus.if.org Git - zziplib/commit
docs: do not inherit str for Match
authorPatrick Steinhardt <ps@pks.im>
Thu, 23 May 2019 21:01:44 +0000 (23:01 +0200)
committerPatrick Steinhardt <ps@pks.im>
Thu, 1 Aug 2019 08:14:04 +0000 (10:14 +0200)
commit983b842cadcaa36b9493359bce695ad790cdb58c
tree1724eb94ce28f25d3f2e2677424d3a8d72310035
parent99582eb1446a54222f9f57fe48a7562a52a9fbf8
docs: do not inherit str for Match

Instead of inheriting str, we can simply implement `__repr__` to return
a string representation of the pattern itself. This fixes compatibility
with Python 3, which throws when executing `str.__init__`.
docs/zzipdoc/match.py