예제 #1
0
    def __init__(self,
                 input=sys.stdin,
                 output=sys.stdout,
                 enable_color=True,
                 wrap_width=80,
                 record_tags=False,
                 fallback_wrap=80):
        try:
            Prompt.__init__(self,
                            input=input,
                            output=output,
                            enable_color=enable_color,
                            wrap_width=wrap_width,
                            record_tags=record_tags)
        except IOError:
            print "\nUnable to access tty size, continuing with wrap width.\n"
            Prompt.__init__(self,
                            input=input,
                            output=output,
                            enable_color=enable_color,
                            wrap_width=fallback_wrap,
                            record_tags=record_tags)

        # Shadowed for another alternative to referencing it
        self.ABORT = ABORT
예제 #2
0
파일: core.py 프로젝트: domcleal/pulp
    def __init__(self, input=sys.stdin, output=sys.stdout, enable_color=True,
                 wrap_width=80, record_tags=False):
        Prompt.__init__(self, input=input, output=output, enable_color=enable_color,
                        wrap_width=wrap_width, record_tags=record_tags)

        # Shadowed for another alternative to referencing it
        self.ABORT = ABORT
예제 #3
0
파일: core.py 프로젝트: BrnoPCmaniak/pulp
    def __init__(self, input=sys.stdin, output=sys.stdout, enable_color=True,
                 wrap_width=80, record_tags=False, fallback_wrap=80):
        try:
            Prompt.__init__(self, input=input, output=output, enable_color=enable_color,
                            wrap_width=wrap_width, record_tags=record_tags)
        except IOError:
            print "\nUnable to access tty size, continuing with wrap width.\n"
            Prompt.__init__(self, input=input, output=output, enable_color=enable_color,
                            wrap_width=fallback_wrap, record_tags=record_tags)

        # Shadowed for another alternative to referencing it
        self.ABORT = ABORT
예제 #4
0
파일: core.py 프로젝트: tomlanyon/pulp
    def __init__(self,
                 input=sys.stdin,
                 output=sys.stdout,
                 enable_color=True,
                 wrap_width=80,
                 record_tags=False):
        Prompt.__init__(self,
                        input=input,
                        output=output,
                        enable_color=enable_color,
                        wrap_width=wrap_width,
                        record_tags=record_tags)

        # Shadowed for another alternative to referencing it
        self.ABORT = ABORT