local_worker.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:sublimeTextConfig 作者: luoye-fe 项目源码 文件源码
def _status(self, timeout=0.05):
        """Check the socket status, returns True if it is operable
        """

        check = 'that you can connect to your localhost'
        addr = '("localhost", {})'.format(self.interpreter.port)
        if sublime.platform() != 'windows':
            check = (
                'that the Unix Domain Socket file {} exists and that you can '
                'connect to it'
            ).format(self.interpreter.host)
            addr = self.interpreter.host

        self.tip = (
            'check that there is Python process executing the anaconda '
            'jsonserver.py script running in your system. If there is, check '
            '{} writing the following script in your Sublime Text 3 console:'
            '\n\nimport socket; socket.socket(socket.AF_INET, '
            'socket.SOCK_STREAM).connect({})\n\nIf anaconda works just fine '
            'after you received this error and the command above worked you '
            'can make anaconda to do not show you this error anymore setting '
            'the \'swallow_startup_errors\' to \'true\' in your '
            'configuration file.'.format(check, addr)
        )
        return super(LocalWorker, self)._status(timeout)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号