1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

pragma: no cover

This commit is contained in:
cclauss
2019-07-15 05:36:02 +02:00
parent c8b261a409
commit 9149d358f4
2 changed files with 4 additions and 4 deletions

View File

@@ -21,9 +21,9 @@ from ..record.geo import GeoCodes
from .base import BaseProvider
# TODO: remove when Python 2.x is no longer supported
try:
try: # pragma: no cover
cmp
except NameError:
except NameError: # pragma: no cover
def cmp(x, y):
return (x > y) - (x < y)

View File

@@ -14,9 +14,9 @@ from six import string_types, text_type
from .geo import GeoCodes
# TODO: remove when Python 2.x is no longer supported
try:
try: # pragma: no cover
cmp
except NameError:
except NameError: # pragma: no cover
def cmp(x, y):
return (x > y) - (x < y)