diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-07-14 13:41:50 +0200 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-07-14 13:41:50 +0200 |
commit | a6440d7404e7f0f2f88edd5d1eddf808cbcbb589 (patch) | |
tree | 43dc35da6b054715f0bb67df5b93e1edb002d02a /pyfirstaidkit/interpret.py | |
parent | f87a133d6b734c1aa15c1070726f5b77b5648cbc (diff) | |
download | firstaidkit-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 'pyfirstaidkit/interpret.py')
-rw-r--r-- | pyfirstaidkit/interpret.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pyfirstaidkit/interpret.py b/pyfirstaidkit/interpret.py index f440ddb..71c1152 100644 --- a/pyfirstaidkit/interpret.py +++ b/pyfirstaidkit/interpret.py @@ -61,8 +61,8 @@ class Tasker: def interrupt(self): self._running = False - self._reporting.info("You sent an interrupt signal to \ - Tasker! This is not recommended.", level = TASKER, + self._reporting.info("You sent an interrupt signal to " + "Tasker! This is not recommended.", level = TASKER, origin = self, importance = logging.WARNING) def flags(self): @@ -88,7 +88,7 @@ class Tasker: level = TASKER, origin = self, importance = logging.WARNING) self._provide.provide("root") else: - self._reporting.info("You are not running the firstaidkit as " \ + self._reporting.info("You are not running the firstaidkit as " "root. Some plugins may not be available.", level = TASKER, origin = self, importance = logging.WARNING) self._provide.unprovide("root") @@ -133,8 +133,8 @@ class Tasker: not pluginSystem.getplugin(plugin).default_flow in pluginSystem.getplugin(plugin).getFlows())): - self._reporting.info("Plugin %s does not contain \ - flow %s"% (plugin, flow or \ + self._reporting.info("Plugin %s does not contain " + "flow %s"% (plugin, flow or \ pluginSystem.getplugin(plugin).default_flow,), \ level = TASKER, origin = self) @@ -147,8 +147,8 @@ class Tasker: #some plugins may not be called because of unfavorable flags for plugin in set(map(lambda x: x[0], actlist)): - self._reporting.info("Plugin %s was not called because of \ - unsatisfied dependencies"% (plugin,), level = TASKER, \ + self._reporting.info("Plugin %s was not called because of " + "unsatisfied dependencies"% (plugin,), level = TASKER, \ origin = self, importance = logging.WARNING) # For the flags case |