Download:
child 22:469ce066f4a4
parent 20:b83b3319ff6b
21:36132d921a97 draft
Anton Shestakov <av6@dwimlabs.net>, Wed, 21 Nov 2018 18:08:57 +0800
plugin: use a 2-tuple as an argument to string.startswith()

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
plugin.py file | annotate | diff | comparison | revisions
--- a/plugin.py Wed Nov 21 01:27:49 2018 +0800
+++ b/plugin.py Wed Nov 21 18:08:57 2018 +0800
@@ -136,7 +136,7 @@
line = line.strip()
if not line or line.startswith('aliases:'):
continue
- if line.startswith('options') or line.startswith('enabled extensions:'):
+ if line.startswith(('options', 'enabled extensions:')):
break
out.append(line)
if out and ' extension - ' in out[0]: