Skip to content

Commit f34305e

Browse files
committed
Mark py2 function as no-cover on Python 3
1 parent 73651fd commit f34305e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

importlib_metadata/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def find_spec(*args, **kwargs):
7070
find_module = find_spec
7171

7272

73-
def py2_message_from_string(text):
73+
def py2_message_from_string(text): # nocoverpy3
7474
# Work around https://bugs.python.org/issue25545 where
7575
# email.message_from_string cannot handle Unicode on Python 2.
7676
io_buffer = io.StringIO(text)

0 commit comments

Comments
 (0)