(logical_line)
Disallow 'xrange()'

    M339
Disallow 'xrange()'
Disallow xrange ()
def no_xrange(logical_line):
    """Disallow 'xrange()'

    M339
    """
    if assert_xrange_re.match(logical_line):
        yield(0, "M339: Do not use xrange().")
def no_xrange ( logical_line ) : if assert_xrange_re . match ( logical_line ) : yield ( 0 , "M339: Do not use xrange()." )