This commit is contained in:
Kovid Goyal 2014-03-28 10:46:01 +05:30
parent 8a902e7810
commit 128cbd8695

View File

@ -13,7 +13,7 @@ message contains `Fix #number` or `Implement #number`. Also updates the commit
message with the summary of the closed bug. message with the summary of the closed bug.
''' '''
import re, urllib, importlib, sys, json import re, urllib, importlib, sys, json, socket
from lxml import html from lxml import html
@ -22,6 +22,8 @@ LAUNCHPAD_BUG = 'https://bugs.launchpad.net/calibre/+bug/%s'
GITHUB_BUG = 'https://api.github.com/repos/kovidgoyal/calibre/issues/%s' GITHUB_BUG = 'https://api.github.com/repos/kovidgoyal/calibre/issues/%s'
BUG_PAT = r'(Fix|Implement|Fixes|Fixed|Implemented|See)\s+#(\d+)' BUG_PAT = r'(Fix|Implement|Fixes|Fixed|Implemented|See)\s+#(\d+)'
socket.setdefaulttimeout(90)
class Bug: class Bug:
def __init__(self): def __init__(self):