Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/k/m/kmd-2.2/kmd/examples/simpleapp.py   kmd(Download)
        if line[0:begidx].strip() in ('!', 'shell'):
            if not text.startswith('~') and os.sep not in text:
                return self.completecommand(text)
        return self.completefilename(text)
 

src/g/p/gpgkeys-1.23/gpgkeys/gpgkeys.py   gpgkeys(Download)
    def completebase(self, word, default):
        """Complete after pipes and input/output redirects."""
        if word.pipepos:
            if not word.isfilename:
                return self.completecommand(word.text)
        if word.commandpos:
            if not word.isfilename:
                return self.completecommand(word.text)
        return self.completebase(word, self.completefilename)
 

src/g/p/gpgkeys-HEAD/gpgkeys/gpgkeys.py   gpgkeys(Download)
    def completebase(self, word, default):
        """Complete after pipes and input/output redirects."""
        if word.pipepos:
            if not word.isfilename:
                return self.completecommand(word.text)
        if word.commandpos:
            if not word.isfilename:
                return self.completecommand(word.text)
        return self.completebase(word, self.completefilename)