diff options
Diffstat (limited to 'coverage')
-rw-r--r-- | coverage/config.py | 2 | ||||
-rw-r--r-- | coverage/inorout.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/coverage/config.py b/coverage/config.py index e519fc62..a48251fb 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -35,7 +35,7 @@ class HandyConfigParser(configparser.RawConfigParser): if our_file: self.section_prefixes.append("") - def read(self, filenames): + def read(self, filenames, encoding_unused=None): """Read a file name as UTF-8 configuration data.""" kwargs = {} if env.PYVERSION >= (3, 2): diff --git a/coverage/inorout.py b/coverage/inorout.py index fbd1a95e..9c3040fc 100644 --- a/coverage/inorout.py +++ b/coverage/inorout.py @@ -243,6 +243,9 @@ class InOrOut(object): # the frame's file name, then just use the original. filename = original_filename + if self.debug: + self.debug.write("Considering filename {!r}".format(filename)) + if not filename: # Empty string is pretty useless. return nope(disp, "empty string isn't a file name") |