diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-09-06 17:35:50 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-09-06 17:35:50 +0200 |
commit | 099d1d1c2cf7e5ecfa4c43d9a12aa0d0cee761f3 (patch) | |
tree | b664e8a43fcb4663c3a752037a46812358da56f4 /src/logger.py | |
parent | 2f6324571e147d427eae0851f4ebf94e8cfed6a7 (diff) | |
download | poezio-099d1d1c2cf7e5ecfa4c43d9a12aa0d0cee761f3.tar.gz poezio-099d1d1c2cf7e5ecfa4c43d9a12aa0d0cee761f3.tar.bz2 poezio-099d1d1c2cf7e5ecfa4c43d9a12aa0d0cee761f3.tar.xz poezio-099d1d1c2cf7e5ecfa4c43d9a12aa0d0cee761f3.zip |
TIL splitlines()
Diffstat (limited to 'src/logger.py')
-rw-r--r-- | src/logger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.py b/src/logger.py index bee6fd79..fad57bec 100644 --- a/src/logger.py +++ b/src/logger.py @@ -131,7 +131,7 @@ class Logger(object): if pos == -1: # If we don't have enough lines in the file pos = 1 # 1, because we do -1 just on the next line # to get 0 (start of the file) - lines = m[pos-1:].decode(errors='replace').split("\n")[:-1] + lines = m[pos-1:].decode(errors='replace').splitlines() messages = [] color = '\x19%s}' % dump_tuple(get_theme().COLOR_INFORMATION_TEXT) |