[gnome-keysign: 2/3] util: re add "quote" import and remove "requests"
- From: Ludovico de Nittis <denittis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keysign: 2/3] util: re add "quote" import and remove "requests"
- Date: Wed, 14 Nov 2018 18:08:30 +0000 (UTC)
commit 768a72526f76a5cfaf47d661e76ec766e340fa46
Author: RyuzakiKK <aasonykk gmail com>
Date: Wed Nov 14 18:34:28 2018 +0100
util: re add "quote" import and remove "requests"
"quote" was added with the commit
2ebf49544879ceca69cb483672fd26099e783a46 but along the road somehow
slipped a commit that removed it.
Also requests has been removed because it is imported two times.
keysign/util.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/keysign/util.py b/keysign/util.py
index d7641ed..d7c6b0f 100755
--- a/keysign/util.py
+++ b/keysign/util.py
@@ -23,7 +23,6 @@ import json
import logging
import os
import shutil
-import requests
from subprocess import call
from string import Template
from tempfile import NamedTemporaryFile
@@ -32,9 +31,11 @@ from xml.etree import ElementTree
try:
from urllib.parse import urlparse, parse_qs
from urllib.parse import ParseResult
+ from urllib.parse import quote
except ImportError:
from urlparse import urlparse, parse_qs
from urlparse import ParseResult
+ from urllib2 import quote
import requests
import dbus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]