Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
python3-pyxb
eight-args-datetime.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File eight-args-datetime.patch of Package python3-pyxb
From 970507ac65c36d005e452a66046d700927ca1c64 Mon Sep 17 00:00:00 2001 From: Richard Neumann <mail@richard-neumann.de> Date: Thu, 19 Aug 2021 18:51:06 +0200 Subject: [PATCH 1/2] Fix #123 Add additional valid fields. --- pyxb/binding/datatypes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/pyxb/binding/datatypes.py +++ b/pyxb/binding/datatypes.py @@ -678,10 +678,10 @@ class _PyXBDateOnly_base (_PyXBDateTime_ ctor_kw[fn] = kw[fn] kw.pop(fn, None) fi += 1 - if fi < len(args): - ctor_kw['tzinfo'] = args[fi] + if len(args) == len(cls._ValidFields) + 1 or len(args) == len(cls._ValidFields) + 5: + ctor_kw['tzinfo'] = args[-1] fi += 1 - if fi != len(args): + if fi > 8: raise TypeError('function takes %d arguments plus optional tzinfo (%d given)' % (len(cls._ValidFields), len(args))) else: raise TypeError('function takes %d arguments plus optional tzinfo' % (len(cls._ValidFields),))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor