From 34cca77045596c176135abb19388264fa2dc64b0 Mon Sep 17 00:00:00 2001 From: Nicolas KAROLAK <nicolas@karolak.fr> Date: Thu, 30 Aug 2018 18:48:31 +0200 Subject: [PATCH] fix(tester): docstring search --- tester.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tester.py b/tester.py index 933a8b6a..bdb2db92 100755 --- a/tester.py +++ b/tester.py @@ -153,10 +153,18 @@ class Tester(): content = fo.read() description = '' if path.endswith('.py'): - start = content.find('\'\'\'') + start = ( + content.find('\'\'\'') + if content.find('\'\'\'') != -1 + else content.find('"""') + ) if start > 0: start += 3 - end = content.find('\'\'\'', start) + end = ( + content.find('\'\'\'', start) + if content.find('\'\'\'', start) != -1 + else content.find('"""', start) + ) if end > 0: description = content[start:end] else: -- GitLab