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

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

src/s/s/sshproxy-HEAD/sshproxy/dispatcher.py   sshproxy(Download)
                        parts = value.split('$')
                        if (len(parts) >= 3
                                        and parts[1] in cipher.list_engines()):
                            # this is already ciphered
                            break
                        parts = value.split('$')
                        if (len(parts) >= 3
                                        and parts[1] in cipher.list_engines()):
                            # this is already ciphered
                            break
                parts = value.split('$')
                if (len(parts) >= 3
                                and parts[1] in cipher.list_engines()):
                    # this is already ciphered
                    return value

src/s/s/sshproxy-HEAD/sshproxy/wizard.py   sshproxy(Download)
    def set_cipher(self, value):
        import cipher
        if value not in cipher.list_engines():
            return False
        self.cfg['cipher_type'] = value