6583:40ace3a73139 | 6584:33ea6f430eb8 |
---|---|
9 | 9 |
10 from __future__ import unicode_literals | 10 from __future__ import unicode_literals |
11 | 11 |
12 import sys | 12 import sys |
13 import os | 13 import os |
14 import logging | |
14 | 15 |
15 from PyQt5.QtCore import QObject, QTextCodec, QProcess, QProcessEnvironment, \ | 16 from PyQt5.QtCore import QObject, QTextCodec, QProcess, QProcessEnvironment, \ |
16 QTimer | 17 QTimer |
17 from PyQt5.QtWidgets import QInputDialog | 18 from PyQt5.QtWidgets import QInputDialog |
18 | 19 |
947 if self.codec is not None: | 948 if self.codec is not None: |
948 line = self.codec.toUnicode(qs) | 949 line = self.codec.toUnicode(qs) |
949 else: | 950 else: |
950 line = bytes(qs).decode() | 951 line = bytes(qs).decode() |
951 | 952 |
953 logging.debug("<Debug-Server> %s", line) | |
952 ## print("Server: ", line) ##debug | 954 ## print("Server: ", line) ##debug |
953 | 955 |
954 self.__handleJsonCommand(line) | 956 self.__handleJsonCommand(line) |
955 continue | 957 continue |
956 | 958 |