All pastes #2042 Raw Edit

duck

public python v1 · immutable
#2042 ·published 2004-11-11 07:04 UTC
rendered paste body
    def arg_tokenize (self, argstr, use_new=True):        """fixing/kludging missing shlex.split in Python <2.3"""        if hasattr(shlex, 'split') and use_new:            toks = shlex.split(argstr)        else:               import shlex_split            toks = shlex_split.shlex_split(argstr)        return toks