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/errors.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/errors.py')
-rw-r--r-- | pyfirstaidkit/errors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyfirstaidkit/errors.py b/pyfirstaidkit/errors.py index a32d1ec..061703e 100644 --- a/pyfirstaidkit/errors.py +++ b/pyfirstaidkit/errors.py @@ -18,8 +18,8 @@ class InvalidFlowStateException(Exception): def __init__(self, flow): - self.message="There appears to be an inconsistency with the %s \ - varialbe. " % flow + self.message="There appears to be an inconsistency with the %s " + "varialbe. " % flow def __str__(self): return self.message |