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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user