##// END OF EJS Templates
Changes from linting github tools
Thomas Kluyver -
Show More
@@ -66,7 +66,7 b' def make_auth_header():'
66 def post_issue_comment(project, num, body):
66 def post_issue_comment(project, num, body):
67 url = 'https://api.github.com/repos/{project}/issues/{num}/comments'.format(project=project, num=num)
67 url = 'https://api.github.com/repos/{project}/issues/{num}/comments'.format(project=project, num=num)
68 payload = json.dumps({'body': body})
68 payload = json.dumps({'body': body})
69 r = requests.post(url, data=payload, headers=make_auth_header())
69 requests.post(url, data=payload, headers=make_auth_header())
70
70
71 def post_gist(content, description='', filename='file', auth=False):
71 def post_gist(content, description='', filename='file', auth=False):
72 """Post some text to a Gist, and return the URL."""
72 """Post some text to a Gist, and return the URL."""
@@ -12,11 +12,9 b' from __future__ import print_function'
12 import errno
12 import errno
13 from glob import glob
13 from glob import glob
14 import io
14 import io
15 import json
16 import os
15 import os
17 import pickle
16 import pickle
18 import re
17 import re
19 import requests
20 import shutil
18 import shutil
21 import time
19 import time
22 from subprocess import call, check_call, check_output, PIPE, STDOUT, CalledProcessError
20 from subprocess import call, check_call, check_output, PIPE, STDOUT, CalledProcessError
General Comments 0
You need to be logged in to leave comments. Login now