def validate_page_name(pagename):
    """Utility for validating wiki page name.

    :param pagename: wiki page name to validate
    """
    return pagename and \
           all(('', '.', '..') not in part for part in pagename.split('/'))
dataset/ETHPy150Open edgewall/trac/trac/wiki/api.py/validate_page_name/swapped operands of `not in`