2008-02-22 Raphael Ackermann <raphael.ackermann@gmail.com>

* various (294 files)
	pep8 doc fixes & pylint fixes

svn: r10103
This commit is contained in:
Raphael Ackermann
2008-02-24 13:55:55 +00:00
parent 2180fa02cb
commit c962d5e6e1
294 changed files with 2925 additions and 2571 deletions

View File

@@ -135,7 +135,7 @@ class DateDisplay:
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()
@@ -313,7 +313,7 @@ class DateDisplayEn(DateDisplay):
def __init__(self, format=None):
"""
Creates a DateDisplay class that converts a Date object to a string
Create a DateDisplay class that converts a Date object to a string
of the desired format. The format value must correspond to the format
list value (DateDisplay.format[]).
"""
@@ -322,7 +322,7 @@ class DateDisplayEn(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -82,7 +82,7 @@ def gregorian_valid(date_tuple):
#-------------------------------------------------------------------------
class DateParser:
"""
Converts a text string into a Date object. If the date cannot be
Convert a text string into a Date object. If the date cannot be
converted, the text string is assigned.
"""
@@ -285,7 +285,7 @@ class DateParser:
def _get_int(self, val):
"""
Converts the string to an integer if the value is not None. If the
Convert the string to an integer if the value is not None. If the
value is None, a zero is returned
"""
if val == None:
@@ -360,7 +360,7 @@ class DateParser:
def _parse_subdate(self, text, subparser=None):
"""
Converts only the date portion of a date.
Convert only the date portion of a date.
"""
if subparser == None:
subparser = self._parse_greg_julian

View File

@@ -114,7 +114,7 @@ class DateDisplayCZ(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
# $Id:_Date_de.py 9912 2008-01-22 09:17:46Z acraphae $
"""
German-specific classes for parsing and displaying dates.
@@ -205,7 +205,7 @@ class DateDisplayDE(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
# $Id:_Date_es.py 9912 2008-01-22 09:17:46Z acraphae $
"""
Spanish-specific classes for parsing and displaying dates.
@@ -129,7 +129,7 @@ class DateDisplayES(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
# $Id:_Date_fi.py 9912 2008-01-22 09:17:46Z acraphae $
"""
Finnish-specific classes for parsing and displaying dates.
@@ -130,7 +130,7 @@ class DateDisplayFI(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
qual = date.get_quality()

View File

@@ -290,7 +290,7 @@ class DateDisplayFR(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
# $Id:_Date_lt.py 9912 2008-01-22 09:17:46Z acraphae $
"""
Lithuanian-specific classes for parsing and displaying dates.
@@ -120,7 +120,7 @@ class DateDisplayLT(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -49,7 +49,7 @@ from _DateHandler import register_datehandler
#-------------------------------------------------------------------------
class DateParserNb(DateParser):
"""
Converts a text string into a Date object, expecting a date
Convert a text string into a Date object, expecting a date
notation in the Norwegian language. If the date cannot be converted,
the text string is assigned.
"""
@@ -130,7 +130,7 @@ class DateDisplayNb(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
# $Id:_Date_nl.py 9912 2008-01-22 09:17:46Z acraphae $
# Written by Benny Malengier
# Last change 2005/12/05:
@@ -209,7 +209,7 @@ class DateDisplayNL(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -224,7 +224,7 @@ class DateDisplayPL(DateDisplay):
def display(self,date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -128,7 +128,7 @@ class DateDisplayPT(DateDisplay):
def display(self,date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
# $Id:_Date_ru.py 9912 2008-01-22 09:17:46Z acraphae $
"""
Russian-specific classes for parsing and displaying dates.
@@ -272,7 +272,7 @@ class DateDisplayRU(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -116,7 +116,7 @@ class DateDisplaySK(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()

View File

@@ -19,7 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
# $Id:_Date_sv.py 9912 2008-01-22 09:17:46Z acraphae $
"""
Swedish-specific classes for parsing and displaying dates.
@@ -49,7 +49,7 @@ from _DateHandler import register_datehandler
#-------------------------------------------------------------------------
class DateParserSv(DateParser):
"""
Converts a text string into a Date object, expecting a date
Convert a text string into a Date object, expecting a date
notation in the swedish language. If the date cannot be converted,
the text string is assigned.
"""
@@ -135,7 +135,7 @@ class DateDisplaySv(DateDisplay):
def display(self, date):
"""
Returns a text string representing the date.
Return a text string representing the date.
"""
mod = date.get_modifier()
cal = date.get_calendar()