Skip to content

Commit e7e8ba8

Browse files
committed
types not used for sake of py23
1 parent ee034d0 commit e7e8ba8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

certbot_external_auth/plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import sys
2323
import tempfile
2424
import time
25-
import types
2625

2726
from collections import OrderedDict
2827

@@ -344,7 +343,7 @@ def _get_cleanup_json(self, achall):
344343
cur_record[FIELD_STATUS] = None
345344
cur_record[FIELD_DOMAIN] = achall.domain
346345
cur_record[FIELD_TOKEN] = b64.b64encode(achall.chall.token)
347-
cur_record[FIELD_VALIDATION] = validation if isinstance(validation, types.StringTypes) else ''
346+
cur_record[FIELD_VALIDATION] = validation if isinstance(validation, basestring) else ''
348347
cur_record[FIELD_KEY_AUTH] = response.key_authorization
349348
cur_record[FIELD_VALIDATED] = None
350349
cur_record[FIELD_ERROR] = None
@@ -383,7 +382,7 @@ def _get_json_to_kwargs(self, json_data):
383382
val = json_data[k]
384383
if k == 'command':
385384
continue
386-
if isinstance(val, types.FloatType):
385+
if isinstance(val, float):
387386
val = str(math.ceil(val))
388387
if not isinstance(val, (str, basestring)):
389388
val = str(val)

0 commit comments

Comments
 (0)