Skip to content

Commit

Permalink
Removed warnings to speed up the process doing https requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Martín committed Aug 20, 2015
1 parent c5b28bc commit cf1cf35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pysibyl/askbot.py
Expand Up @@ -29,6 +29,8 @@
from pysibyl.db import People, Questions, Tags, QuestionsTags, Answers, Comments
from pysibyl.utils import JSONParser

from requests.packages import urllib3
urllib3.disable_warnings()

class QuestionsIter(object):
"""Iterator to go through the set of questions
Expand Down
2 changes: 2 additions & 0 deletions pysibyl/discourse.py
Expand Up @@ -26,6 +26,8 @@
from pysibyl.db import People, Questions, Tags, QuestionsTags, Answers, Comments
from pysibyl.utils import JSONParser

from requests.packages import urllib3
urllib3.disable_warnings()

class Discourse(object):
"""Discourse main class
Expand Down
3 changes: 3 additions & 0 deletions pysibyl/stackoverflow.py
Expand Up @@ -28,6 +28,9 @@
from pysibyl.db import People, Questions, Tags, QuestionsTags, Answers, Comments
from pysibyl.utils import JSONParser

from requests.packages import urllib3
urllib3.disable_warnings()

class StackSampleData(object):
"""Sample data from StackExchange API to debug without doing real queries"""
@staticmethod
Expand Down

0 comments on commit cf1cf35

Please sign in to comment.