From 4e17f27231ae3d1132d2cea7be31ac39053b0cf4 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Sat, 27 Feb 2016 19:37:58 +0300 Subject: [PATCH] removed wrong imports --- src/bootstrap.py | 3 +-- src/menu.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bootstrap.py b/src/bootstrap.py index fe03492..340af37 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -1,4 +1,3 @@ -from util import string_to_bin import random @@ -7,7 +6,7 @@ class Node(object): self._ip, self._port, self._tox_key, self.rand = ip, port, tox_key, rand def get_data(self): - return self._ip, self._port, string_to_bin(self._tox_key) + return self._ip, self._port, self._tox_key def node_generator(): diff --git a/src/menu.py b/src/menu.py index 2363f6f..ce19581 100644 --- a/src/menu.py +++ b/src/menu.py @@ -1,6 +1,5 @@ from PySide import QtCore, QtGui from settings import Settings -from util import bin_to_string class AddContact(QtGui.QWidget): @@ -103,7 +102,7 @@ class ProfileSettings(QtGui.QWidget): font.setBold(True) self.tox_id.setFont(font) self.tox_id.setObjectName("tox_id") - s = bin_to_string(self.tox.self_get_address().value) + s = self.tox.self_get_address() self.tox_id.setText(s) self.copyId = QtGui.QPushButton(self) self.copyId.setGeometry(QtCore.QRect(40, 250, 98, 31))