@staticmethod
    def trimRecipe(recipe):
        '''
        Strip leading whitespace off a recipe so you can indent
        recipes in a test while still using multi-line string
        literals. Will remove all leading whitespace common to
        non-blank lines.
        '''

        minWhitespace = None
        pattern = re.compile('^(\s*)\S')
        for line in recipe.splitlines():
            match = pattern.match(line)
            if match:
                whitespace = len(match.group(1))
                if minWhitespace is None or minWhitespace < whitespace:
                    minWhitespace = whitespace

        if minWhitespace is None:
            return recipe

        ret = ''
        for line in recipe.splitlines():
            ret += line[minWhitespace:] + '\n'
        return ret
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.trimRecipe/swapped operands of `<`