[Python-checkins] python/dist/src/Lib textwrap.py,1.3,1.4

gward@users.sourceforge.net gward@users.sourceforge.net
Fri, 07 Jun 2002 15:32:17 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv18321

Modified Files:
	textwrap.py 
Log Message:
Conform to the bloody coding standards: "def foo()" not "def foo ()".
Yuck.


Index: textwrap.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/textwrap.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** textwrap.py	7 Jun 2002 22:04:15 -0000	1.3
--- textwrap.py	7 Jun 2002 22:32:15 -0000	1.4
***************
*** 9,13 ****
  
  # XXX is this going to be implemented properly somewhere in 2.3?
! def islower (c):
      return c in string.lowercase
  
--- 9,13 ----
  
  # XXX is this going to be implemented properly somewhere in 2.3?
! def islower(c):
      return c in string.lowercase
  
***************
*** 73,77 ****
      # (possibly useful for subclasses to override)
  
!     def _munge_whitespace (self, text):
          """_munge_whitespace(text : string) -> string
  
--- 73,77 ----
      # (possibly useful for subclasses to override)
  
!     def _munge_whitespace(self, text):
          """_munge_whitespace(text : string) -> string
  
***************
*** 87,91 ****
  
  
!     def _split (self, text):
          """_split(text : string) -> [string]
  
--- 87,91 ----
  
  
!     def _split(self, text):
          """_split(text : string) -> [string]
  
***************
*** 102,106 ****
          return chunks
  
!     def _fix_sentence_endings (self, chunks):
          """_fix_sentence_endings(chunks : [string])
  
--- 102,106 ----
          return chunks
  
!     def _fix_sentence_endings(self, chunks):
          """_fix_sentence_endings(chunks : [string])
  
***************
*** 120,124 ****
                  i += 1
  
!     def _handle_long_word (self, chunks, cur_line, cur_len, width):
          """_handle_long_word(chunks : [string],
                               cur_line : [string],
--- 120,124 ----
                  i += 1
  
!     def _handle_long_word(self, chunks, cur_line, cur_len, width):
          """_handle_long_word(chunks : [string],
                               cur_line : [string],
***************
*** 148,152 ****
          # devoted to the long word that we can't handle right now.
  
!     def _wrap_chunks (self, chunks, width):
          """_wrap_chunks(chunks : [string], width : int) -> [string]
  
--- 148,152 ----
          # devoted to the long word that we can't handle right now.
  
!     def _wrap_chunks(self, chunks, width):
          """_wrap_chunks(chunks : [string], width : int) -> [string]
  
***************
*** 203,207 ****
      # -- Public interface ----------------------------------------------
  
!     def wrap (self, text, width):
          """wrap(text : string, width : int) -> [string]
  
--- 203,207 ----
      # -- Public interface ----------------------------------------------
  
!     def wrap(self, text, width):
          """wrap(text : string, width : int) -> [string]
  
***************
*** 220,224 ****
          return self._wrap_chunks(chunks, width)
  
!     def fill (self, text, width, initial_tab="", subsequent_tab=""):
          """fill(text : string,
                  width : int,
--- 220,224 ----
          return self._wrap_chunks(chunks, width)
  
!     def fill(self, text, width, initial_tab="", subsequent_tab=""):
          """fill(text : string,
                  width : int,
***************
*** 242,248 ****
  _wrapper = TextWrapper()
  
! def wrap (text, width):
      return _wrapper.wrap(text, width)
  
! def fill (text, width, initial_tab="", subsequent_tab=""):
      return _wrapper.fill(text, width, initial_tab, subsequent_tab)
--- 242,248 ----
  _wrapper = TextWrapper()
  
! def wrap(text, width):
      return _wrapper.wrap(text, width)
  
! def fill(text, width, initial_tab="", subsequent_tab=""):
      return _wrapper.fill(text, width, initial_tab, subsequent_tab)