From 9df434550a499c16e9fd26cfb9627837bfdc02a5 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 1 May 2021 13:02:31 -0400 Subject: refactor: remove code explicitly choosing between py2 and py3 --- coverage/misc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coverage/misc.py') diff --git a/coverage/misc.py b/coverage/misc.py index 034e288e..44d1cdf8 100644 --- a/coverage/misc.py +++ b/coverage/misc.py @@ -71,8 +71,7 @@ if USE_CONTRACTS: # Define contract words that PyContract doesn't have. new_contract('bytes', lambda v: isinstance(v, bytes)) - if env.PY3: - new_contract('unicode', lambda v: isinstance(v, unicode_class)) + new_contract('unicode', lambda v: isinstance(v, unicode_class)) def one_of(argnames): """Ensure that only one of the argnames is non-None.""" -- cgit v1.2.1