Kamilla added the comment:

Applying changes as suggested by R. David Murray in the Core-mentorship e-mail 
list.

Instead of doing the if tests I've replaced the existing

   if isinstance(expected_regex, (bytes, str)):

by

   if expected_regex is not None:


And also made a change in one of the tests because I figure out it was wrong.

----------
Added file: http://bugs.python.org/file34364/validate_regex_improved.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20145>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to