Skip to content

Commit

Permalink
fix: make pathlib.Path objecct in a doc test case if it's available
Browse files Browse the repository at this point in the history
  • Loading branch information
ssato committed May 4, 2018
1 parent dfb7668 commit 4a0b944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anyconfig/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def make(input_, cps_by_ext, cps_by_type, forced_type=None):
>>> make("cnf.json", cps_by_ext, cps_by_type, forced_type="json").parser
<class 'anyconfig.backend.json.Parser'>
>>> if pathlib is not None:
... x = make("/path/to/cnf.json", *cpss)
... path = pathlib.Path("/path/to/cnf.json")
... x = make(path, *cpss)
... (x.parser, x.path)
(<class 'anyconfig.backend.json.Parser'>, '/path/to/cnf.json')
"""
Expand Down

0 comments on commit 4a0b944

Please sign in to comment.