File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2222import sys
2323import tempfile
2424import time
25- import types
2625
2726from 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 )
You can’t perform that action at this time.
0 commit comments