[httpupload] Import certifi only on windows

This commit is contained in:
Philipp Hörist
2017-03-01 14:31:47 +01:00
parent a3479402c9
commit c373a2961e

View File

@@ -22,7 +22,8 @@ from urllib.request import Request, urlopen
import mimetypes
import logging
from binascii import hexlify
import certifi
if os.name == 'nt':
import certifi
import nbxmpp
from gi.repository import Gtk, GLib