[python-hdf5storage] 61/84: Made it so that Options would take additional keyword arguments even though it will ignore them to be more compatible with future versions of the package.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:25:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 0.1.10
in repository python-hdf5storage.

commit baffeb1896977e3870aa415c046fce6ce275c9f7
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Fri Aug 21 17:49:33 2015 -0400

    Made it so that Options would take additional keyword arguments even though it will ignore them to be more compatible with future versions of the package.
---
 hdf5storage/__init__.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/hdf5storage/__init__.py b/hdf5storage/__init__.py
index f430b65..ee5df90 100644
--- a/hdf5storage/__init__.py
+++ b/hdf5storage/__init__.py
@@ -111,6 +111,10 @@ class Options(object):
         See Attributes.
     marshaller_collection : MarshallerCollection, optional
         See Attributes.
+    **keywords :
+        Additional keyword arguments. They are ignored. They are allowed
+        to be given to be more compatible with future versions of this
+        package where more options will be added.
 
     Attributes
     ----------
@@ -150,7 +154,8 @@ class Options(object):
                  complex_names=('r', 'i'),
                  group_for_references="/#refs#",
                  oned_as='row',
-                 marshaller_collection=None):
+                 marshaller_collection=None,
+                 **keywords):
         # Set the defaults.
 
         self._store_python_metadata = True

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git



More information about the debian-science-commits mailing list