[PATCH 1/2 v3] A function for resolving date format and order

Vratislav Podzimek vpodzime at redhat.com
Fri Oct 10 07:25:18 UTC 2014


On Thu, 2014-10-09 at 09:06 -0700, Brian C. Lane wrote:
> On Thu, Oct 09, 2014 at 11:41:37AM +0200, Vratislav Podzimek wrote:
> > +    :returns: a pair where the first field contains a tuple with the year, month
> > +              and day objects/values put in the right order and where the second
> > +              field contains a tuple with three :class:`_DateFieldSpec` objects
> > +              specifying formats respectively to the first (year, month, day)
> > +              field
> > +    :rtype: tuple
> > +    :raise ValueError: in case currently set locale has unsupported date
> > +                       format and fail_safe is set to False
> 
> Maybe include an example of a return value? I had to look at the code to
> be sure it was a tuple of 2 tuples.
Good point, added.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list