# HG changeset patch # User Dirk Olmes # Date 1411695349 -7200 # Node ID 3190c60927e54ad2029f260a5c73b49722d2d0a8 # Parent e7c5aeba8a94133e89d1d538856db57ec4e50692 fixes from eric's checker diff -r e7c5aeba8a94 -r 3190c60927e5 RemoteViewer/Connection.py --- a/RemoteViewer/Connection.py Thu Sep 25 03:01:47 2014 +0200 +++ b/RemoteViewer/Connection.py Fri Sep 26 03:35:49 2014 +0200 @@ -4,7 +4,7 @@ KEYS = ['geometry', 'id', 'host', 'title', 'type', 'user'] def filter_string(func): - '''decorator function to filter turn empty strings into None''' + """decorator function to filter turn empty strings into None""" def __perform(object, string): if len(string) == 0: string = None @@ -34,26 +34,26 @@ @filter_string def setTitle(self, title): - '''This is a slot that is connected to a signal in the GUI''' + """This is a slot that is connected to a signal in the GUI""" self.title = title def setType(self, type): - '''This is a slot that is connected to a signal in the GUI''' + """This is a slot that is connected to a signal in the GUI""" self.type = type @filter_string def setHost(self, hostname): - '''This is a slot that is connected to a signal in the GUI''' + """This is a slot that is connected to a signal in the GUI""" self.host = hostname @filter_string def setUser(self, user): - '''This is a slot that is connected to a signal in the GUI''' + """This is a slot that is connected to a signal in the GUI""" self.user = user @filter_string def setGeometry(self, geometry): - '''This is a slot that is connected to a signal in the GUI''' + """This is a slot that is connected to a signal in the GUI""" self.geometry = geometry def displayString(self): diff -r e7c5aeba8a94 -r 3190c60927e5 RemoteViewer/Viewer.py --- a/RemoteViewer/Viewer.py Thu Sep 25 03:01:47 2014 +0200 +++ b/RemoteViewer/Viewer.py Fri Sep 26 03:35:49 2014 +0200 @@ -46,6 +46,6 @@ def buildCommand(self): command = ['xfreerdp', '/v:' + self.connection.host] user = self.connection.user - if user is not None: + if user is not None: command.append('/u:' + user) return command