forked from shaba/openuds
* Updated dependency for rpms (pycrypto) for UDS
* Included "urllib.parse" as import (not all platforms includes it on "urllib" import) * Fixed stupid "b" on tools
This commit is contained in:
parent
6a9b764e1e
commit
a527ff326d
@ -11,7 +11,7 @@ Release: %{release}
|
|||||||
Summary: Client for Universal Desktop Services (UDS) Broker
|
Summary: Client for Universal Desktop Services (UDS) Broker
|
||||||
License: BSD3
|
License: BSD3
|
||||||
Group: Applications/Productivity
|
Group: Applications/Productivity
|
||||||
Requires: python3-six python3-requests python3-paramiko python3-qt5
|
Requires: python3-six python3-requests python3-paramiko python3-qt5 python3-pycrypto
|
||||||
Vendor: Virtual Cable S.L.U.
|
Vendor: Virtual Cable S.L.U.
|
||||||
URL: http://www.udsenterprise.com
|
URL: http://www.udsenterprise.com
|
||||||
Provides: udsclient
|
Provides: udsclient
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
import urllib
|
import urllib
|
||||||
|
import urllib.parse
|
||||||
|
|
||||||
from PyQt5.QtCore import pyqtSignal, pyqtSlot
|
from PyQt5.QtCore import pyqtSignal, pyqtSlot
|
||||||
from PyQt5.QtCore import QObject, QUrl, QSettings
|
from PyQt5.QtCore import QObject, QUrl, QSettings
|
||||||
|
@ -72,7 +72,7 @@ nVgtClKcDDlSaBsO875WDR0CAwEAAQ==
|
|||||||
|
|
||||||
def saveTempFile(content, filename=None):
|
def saveTempFile(content, filename=None):
|
||||||
if filename is None:
|
if filename is None:
|
||||||
filename = b''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(16))
|
filename = ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(16))
|
||||||
filename = filename + '.uds'
|
filename = filename + '.uds'
|
||||||
|
|
||||||
if 'win32' in sys.platform:
|
if 'win32' in sys.platform:
|
||||||
|
Loading…
Reference in New Issue
Block a user