Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-01-15 01:13:23 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-01-15 01:13:23 +0300
commit68983b9eed74e5055c9e15d55ff9b42a23b510cd (patch)
tree7cfa0b4a10c561a9d488582d77753d50c7d065df
parente141482c16ff5fa64ef81be7b99a6a1dd69a0c23 (diff)
[url_image_preview] Fix missing imports
Fixes #176
-rw-r--r--url_image_preview/http_functions.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/url_image_preview/http_functions.py b/url_image_preview/http_functions.py
index 275b0f5..824655a 100644
--- a/url_image_preview/http_functions.py
+++ b/url_image_preview/http_functions.py
@@ -23,6 +23,11 @@ from common import helpers
from common import gajim
import logging
+if gajim.HAVE_PYCURL:
+ import pycurl
+ from cStringIO import StringIO
+
+
log = logging.getLogger('gajim.plugin_system.url_image_preview.http_functions')
def get_http_head(account, url):
@@ -70,8 +75,6 @@ def _get_http_head_proxy(url, proxy):
if not gajim.HAVE_PYCURL:
log.error('PYCURL not installed')
return ('', 0)
- import pycurl
- from cStringIO import StringIO
headers = ''
try: