From bf32a16e4975b5f507d05f34d1fadb796c78cdc0 Mon Sep 17 00:00:00 2001 From: imdano <> Date: Mon, 17 Dec 2007 11:49:03 +0000 Subject: [PATCH] Fixed a bug (typo?) in daemon.py that would keep it from working correctly. --- daemon.py | 2 +- wnettools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 073c504..899eb9c 100644 --- a/daemon.py +++ b/daemon.py @@ -333,7 +333,7 @@ class ConnectionWizard(dbus.service.Object): if fresh: self.Scan() #self.AutoConnectScan() # Also scans for hidden networks - if self.CheckPluggedIn() == True and self.: + if self.CheckPluggedIn() == True: if self.GetWiredAutoConnectMethod() == 2: self.LaunchChooser() else: diff --git a/wnettools.py b/wnettools.py index 4b65f1e..7dca365 100644 --- a/wnettools.py +++ b/wnettools.py @@ -639,5 +639,5 @@ class WirelessInterface(Interface): output = misc.Run(cmd) network = misc.RunRegex(re.compile('.*ESSID:"(.*?)"',re.DOTALL | re.I | re.M | re.S), output) if network is not None: - network = network.encode('utf-8') + network = misc.to_unicode(network) return network