# HG changeset patch # User Franz Glasner # Date 1556785956 -7200 # Node ID 62db35db89391053a87163777cb259656c46e8de # Parent eeb3ed104ea1fa506f88935fae4314f0548951dd Docu: formatting diff -r eeb3ed104ea1 -r 62db35db8939 configmix/__init__.py --- a/configmix/__init__.py Thu May 02 09:42:28 2019 +0200 +++ b/configmix/__init__.py Thu May 02 10:32:36 2019 +0200 @@ -202,14 +202,15 @@ def set_loader(fnpattern, mode): - """Associate a :mod:`fnmatch` style pattern `fnpattern` with a file - mode `mode` that determines what will be called when :func:`load` - encounters a file argument that matches `fnpattern`. + """Associate a :mod:`fnmatch` style pattern `fnpattern` with a + file-mode `mode` that determines what will be called when + :func:`load` encounters a file argument that matches `fnpattern`. - :param str fnpattern: the :mod:`fnmatch` pattern to associate a loader with + :param str fnpattern: the :mod:`fnmatch` pattern to associate a loader + with :param callable mode: a mode string or a callable that accepts a - `filename` argument and returns a file - mode for the given file (or `None`) + `filename` argument and returns a file-mode for + the given file (or `None`) This function prepends to the given pattern to the currently defined associations.