Skip to content

Commit

Permalink
Some python3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 26, 2017
1 parent f67beeb commit e7ef9f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/ci/plugin_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import getpass
import xmlrpc.client
import json
import httplib
import http.client
import os
from optparse import OptionParser

Expand Down Expand Up @@ -58,7 +58,7 @@ def main(parameters, arguments):
print("Fault code: %d" % err.faultCode)
print("Fault string: %s" % err.faultString)

conn = httplib.HTTPSConnection('api.github.com')
conn = http.client.HTTPSConnection('api.github.com')
headers = {
'User-Agent' : 'Deploy-Script',
'Authorization': 'token {}'.format(os.environ['OAUTH_TOKEN'])
Expand All @@ -70,7 +70,7 @@ def main(parameters, arguments):
release = json.load(response)
print(release)

conn = httplib.HTTPSConnection('uploads.github.com')
conn = http.client.HTTPSConnection('uploads.github.com')
headers['Content-Type'] = 'application/zip'
url='{}?name={}'.format(release['upload_url'][:-13], filename)
print('Upload to {}'.format(url))
Expand Down

0 comments on commit e7ef9f5

Please sign in to comment.