Skip to content

Commit 17880b6

Browse files
committed
Restore coverage.
1 parent 69cb2b9 commit 17880b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2/_compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
STRING_TYPES = (unicode, bytes)
88

99
def u(x, encoding='ascii'):
10-
if isinstance(x, TEXT):
10+
if isinstance(x, TEXT): #pragma NO COVER
1111
return x
1212
try:
1313
return x.decode(encoding)
14-
except AttributeError:
14+
except AttributeError: #pragma NO COVER
1515
raise ValueError('WTF: %s' % x)
1616

1717
try:

0 commit comments

Comments
 (0)