diff --git a/flavio/util.py b/flavio/util.py index 93c7e014..98bdcfa4 100644 --- a/flavio/util.py +++ b/flavio/util.py @@ -3,6 +3,7 @@ import sys from itertools import chain import re +import ast def get_datapath(package, resource): @@ -24,7 +25,12 @@ def get_datapath(package, resource): return resource_name def extract_citations(): - regexp = re.compile(r'\.register\((\'.*?\'|".*?")\)') + string_in_parantheses_matcher = ( + r'\(\s*[rfuRFU]{0,2}".*?(?