From a527ff326daa9cb1a7d3fb950e9b1eab44eeac88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 27 Aug 2020 14:13:27 +0200 Subject: [PATCH] * 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 --- client-py3/full/linux/udsclient-template.spec | 2 +- client-py3/full/src/uds/rest.py | 1 + client-py3/full/src/uds/tools.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client-py3/full/linux/udsclient-template.spec b/client-py3/full/linux/udsclient-template.spec index cea9e930..4b07ab7a 100644 --- a/client-py3/full/linux/udsclient-template.spec +++ b/client-py3/full/linux/udsclient-template.spec @@ -11,7 +11,7 @@ Release: %{release} Summary: Client for Universal Desktop Services (UDS) Broker License: BSD3 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. URL: http://www.udsenterprise.com Provides: udsclient diff --git a/client-py3/full/src/uds/rest.py b/client-py3/full/src/uds/rest.py index 5857a427..10d0de72 100644 --- a/client-py3/full/src/uds/rest.py +++ b/client-py3/full/src/uds/rest.py @@ -34,6 +34,7 @@ import json import urllib +import urllib.parse from PyQt5.QtCore import pyqtSignal, pyqtSlot from PyQt5.QtCore import QObject, QUrl, QSettings diff --git a/client-py3/full/src/uds/tools.py b/client-py3/full/src/uds/tools.py index 72ffc535..5c4b93dd 100644 --- a/client-py3/full/src/uds/tools.py +++ b/client-py3/full/src/uds/tools.py @@ -72,7 +72,7 @@ nVgtClKcDDlSaBsO875WDR0CAwEAAQ== def saveTempFile(content, filename=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' if 'win32' in sys.platform: