summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-07-14 13:41:50 +0200
committerJoel Andres Granados <jgranado@redhat.com>2008-07-14 13:41:50 +0200
commita6440d7404e7f0f2f88edd5d1eddf808cbcbb589 (patch)
tree43dc35da6b054715f0bb67df5b93e1edb002d02a /plugins
parentf87a133d6b734c1aa15c1070726f5b77b5648cbc (diff)
downloadfirstaidkit-a6440d7404e7f0f2f88edd5d1eddf808cbcbb589.tar.gz
firstaidkit-a6440d7404e7f0f2f88edd5d1eddf808cbcbb589.tar.xz
firstaidkit-a6440d7404e7f0f2f88edd5d1eddf808cbcbb589.zip
Avoid the ugly space left by adding "\" to a string separation.
When deviding a string into two lines one must use pythons automatic string concatenation (python concatenates strings that are in different line but are inside parenthesis). Do not use the "\" in the string as this will cause strange and unwanted output. Yes: print("long string" "rest of string") No: print("long string \ rest of string")
Diffstat (limited to 'plugins')
-rw-r--r--plugins/xserver.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/xserver.py b/plugins/xserver.py
index 02659da..6713cac 100644
--- a/plugins/xserver.py
+++ b/plugins/xserver.py
@@ -72,8 +72,8 @@ class Xserver(Plugin):
if os.path.exists("/tmp/.X0-lock"):
self._reporting.info("An X server is already running.",
level = PLUGIN, origin = self)
- self._reporting.info("You can run the \"force\" flow to \
- avoud this check. In some cases it works.",
+ self._reporting.info("You can run the \"force\" flow to "
+ "avoud this check. In some cases it works.",
level = PLUGIN, origin = self)
self._result = ReturnSuccess
@@ -86,8 +86,8 @@ class Xserver(Plugin):
# If the configuration is not there dont even bother to try
#fixing it. This will go through the proces of trying to fix
#it. at least we told the user.
- self._reporting.info("The error is in the xservers autodetection \
- mechanism, this does not have an automated solution yet.",
+ self._reporting.info("The error is in the xservers autodetection "
+ "mechanism, this does not have an automated solution yet.",
level = PLUGIN, origin = self)
self._result = ReturnFailure
@@ -110,8 +110,8 @@ class Xserver(Plugin):
# If the configuration is not there dont even bother to try fixing it.
# This will go through the proces of trying to fix it. at least we
#told the user.
- self._reporting.info("The error is in the xservers autodetection \
- mechanism, this does not have an automated solution yet.",
+ self._reporting.info("The error is in the xservers autodetection "
+ "mechanism, this does not have an automated solution yet.",
level = PLUGIN, origin = self)
self._result = ReturnFailure
@@ -147,8 +147,8 @@ class Xserver(Plugin):
level = PLUGIN, origin = self)
self._result = ReturnSuccess
else:
- self._reporting.info("X server is still missconfigured with new \
- file.", level = PLUGIN, origin = self)
+ self._reporting.info("X server is still missconfigured with new "
+ "file.", level = PLUGIN, origin = self)
self._result = ReturnFailure
self._issue.set(fixed = (self._result == ReturnSuccess),
reporting = self._reporting, level = PLUGIN, origin = self)
@@ -156,8 +156,8 @@ class Xserver(Plugin):
def restore(self):
if not self.backupSpace.exists(path=self.confPath):
# This is the case where there is no config file.
- self._reporting.info("The backedup file was not present. Assuming \
- that xorg did not have a config file to begin with.",
+ self._reporting.info("The backedup file was not present. Assuming "
+ "that xorg did not have a config file to begin with.",
level = PLUGIN, origin = self)
else:
self._reporting.info("Restoring original file.", level = PLUGIN ,