summaryrefslogtreecommitdiff
path: root/poezio/tabs
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-06-12 04:55:02 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-06-20 03:09:30 +0530
commit569efdec36d7e2200f90e23572c2a88127ec5022 (patch)
tree7f453e428114ae945772fa4a79ace63d00dcb9c1 /poezio/tabs
parent2c4a2d3d010bceacba6c54988d5eed228e671f31 (diff)
downloadpoezio-569efdec36d7e2200f90e23572c2a88127ec5022.tar.gz
poezio-569efdec36d7e2200f90e23572c2a88127ec5022.tar.bz2
poezio-569efdec36d7e2200f90e23572c2a88127ec5022.tar.xz
poezio-569efdec36d7e2200f90e23572c2a88127ec5022.zip
Fixed some mistakes in coding style
Diffstat (limited to 'poezio/tabs')
-rw-r--r--poezio/tabs/basetabs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 1de73052..c3f1fbe1 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -826,7 +826,7 @@ class ChatTab(Tab):
new_date = new_date.replace(year=datetime.now().year, month=datetime.now().month, day=datetime.now().day)
except ValueError:
pass
- if '-' in args[1]:
+ if args[1].startswith('-'):
if ' ' in args[1]:
new_args = args[1].split(' ')
new_args[0] = new_args[0].strip('-')
@@ -845,7 +845,7 @@ class ChatTab(Tab):
self.text_win.scroll_down(int(scroll_len))
self.core.refresh_window()
return
- elif '+' in args[1]:
+ elif args[1].startswith('+'):
scroll_len = args[1].strip('+')
if scroll_len.isdigit():
self.text_win.scroll_up(int(scroll_len))