Skip to content

Commit

Permalink
use six moves instead of httplib
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybaloney committed Jan 29, 2018
1 parent 43e838d commit 04509f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions st2debug/st2debug/cmd/submit_debug_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import argparse
import platform
import tempfile
import httplib

import six
import yaml
Expand Down Expand Up @@ -326,7 +325,7 @@ def upload_archive(self, archive_file_path):

with open(archive_file_path, 'rb') as fp:
response = requests.put(url=url, files={'file': fp})
assert response.status_code == httplib.OK
assert response.status_code == six.moves.http_client.OK
except Exception as e:
LOG.exception('Failed to upload tarball to %s' % self.company_name, exc_info=True)
raise e
Expand Down

0 comments on commit 04509f2

Please sign in to comment.