This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yan12125
Recipients vinay.sajip, yan12125
Date 2018-12-15.12:07:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544875668.42.0.788709270274.issue35509@psf.upfronthosting.co.za>
In-reply-to
Content
The following script runs fine on Python 3.7.1 but not on master (f5107dfd42).

import logging

class Foo(logging.Formatter):
    def __init__(self):
        super().__init__(self)

Foo()

The output is:

Traceback (most recent call last):
  File "t.py", line 9, in <module>
    Foo()
  File "t.py", line 6, in __init__
    super().__init__(self)
  File "/usr/lib/python3.8/logging/__init__.py", line 589, in __init__
    self._style.validate()
  File "/usr/lib/python3.8/logging/__init__.py", line 441, in validate
    if not self.validation_pattern.search(self._fmt):
TypeError: expected string or bytes-like object

Most likely there's something wrong in the newly-added validation step (issue34844).

/cc the primary reviewer of the aforementioned patch.
History
Date User Action Args
2018-12-15 12:07:48yan12125setrecipients: + yan12125, vinay.sajip
2018-12-15 12:07:48yan12125setmessageid: <1544875668.42.0.788709270274.issue35509@psf.upfronthosting.co.za>
2018-12-15 12:07:48yan12125linkissue35509 messages
2018-12-15 12:07:47yan12125create