changeset 21:3190c60927e5

fixes from eric's checker
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 26 Sep 2014 03:35:49 +0200
parents e7c5aeba8a94
children 88b0f704e2ab
files RemoteViewer/Connection.py RemoteViewer/Viewer.py
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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):
--- 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