strip_comments

privex.helpers.setuppy.common.strip_comments(l: str)str[source]

Strip any # comments from a line.

Parameters

l (str) – A string line, which may contain # comments

Return str clean_line

The line l - stripped of any comments and excess whitespace.