]> granicus.if.org Git - python/commit
Fix and test for bug #764548:
authorJust van Rossum <just@letterror.com>
Wed, 2 Jul 2003 20:03:04 +0000 (20:03 +0000)
committerJust van Rossum <just@letterror.com>
Wed, 2 Jul 2003 20:03:04 +0000 (20:03 +0000)
commit12723baceab61f8812d68575c962696cc4e77fa1
tree6ca9be800da1a9e5f3900302f5e82b883edb0231
parent5e4e39f12a9ec71650e9d8296b1fb69831c808de
Fix and test for bug #764548:
Use isinstance() instead of comparing types directly, to enable
subclasses of str and unicode to be used as patterns.
Blessed by /F.
Lib/sre.py
Lib/sre_compile.py
Lib/test/test_re.py