Пример #1
0
    def __init__(self, xmlrfc, width=72, quiet=False, verbose=False, date=datetime.date.today()):
        PaginatedTextRfcWriter.__init__(self, xmlrfc, width=width, \
                                        quiet=quiet, verbose=verbose, date=date)
        self.curr_indent = 0    # Used like a state machine to control
                                # whether or not we print a .in command

        self.wrapper.width = self.width
        self.wrapper.break_on_hyphens = True
Пример #2
0
    def __init__(self, xmlrfc, width=72, quiet=None, options=default_options, date=datetime.date.today()):
        if not quiet is None:
            options.quiet = quiet
        PaginatedTextRfcWriter.__init__(self, xmlrfc, width=width, options=options, date=date)
        self.curr_indent = 0    # Used like a state machine to control
                                # whether or not we print a .in command

        self.wrapper.width = self.width
        self.wrapper.break_on_hyphens = True
Пример #3
0
    def __init__(self,
                 xmlrfc,
                 width=72,
                 quiet=False,
                 verbose=False,
                 date=datetime.date.today()):
        PaginatedTextRfcWriter.__init__(self, xmlrfc, width=width, \
                                        quiet=quiet, verbose=verbose, date=date)
        self.curr_indent = 0  # Used like a state machine to control
        # whether or not we print a .in command

        self.wrapper.width = self.width
        self.wrapper.break_on_hyphens = True