From c8cdc5b9eae79a4ba904eb5c0a7248fbd1cf28c6 Mon Sep 17 00:00:00 2001 From: cynddl Date: Sat, 29 Dec 2018 16:10:04 +0100 Subject: [PATCH] Fix broken initialization on Python 3 --- PSL/Peripherals.py | 2 +- PSL/sciencelab.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PSL/Peripherals.py b/PSL/Peripherals.py index 5574a8f2..27b29dce 100644 --- a/PSL/Peripherals.py +++ b/PSL/Peripherals.py @@ -1,5 +1,5 @@ from __future__ import print_function -import commands_proto as CP +import PSL.commands_proto as CP import numpy as np import time, inspect diff --git a/PSL/sciencelab.py b/PSL/sciencelab.py index c1b853cd..baaf238e 100644 --- a/PSL/sciencelab.py +++ b/PSL/sciencelab.py @@ -2864,7 +2864,7 @@ def read_flash(self, page, location): self.raiseException(ex, "Communication Error , Function : " + inspect.currentframe().f_code.co_name) def __stoa__(self, s): - return [ord(a) for a in s] + return [ord(a) for a in s.decode('utf-8')] def __atos__(self, a): return ''.join(chr(e) for e in a) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy