Skip to content

Commit

Permalink
Fix None docstring when running in -OO mode (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcharlong committed Sep 25, 2020
1 parent 59d788a commit 34084cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Include docs in source distributions as well the whole tests folder,
ensuring `conftest.py` is present, fixes [#364](https://github.com/PyFilesystem/pyfilesystem2/issues/364).
- Stop patching copy with Python 3.8+ because it already uses sendfile.
- Fixed crash when CPython's -OO flag is used

## [2.4.11] - 2019-09-07

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Many thanks to the following developers for contributing to this project:
- [Diego Argueta](https://github.com/dargueta)
- [Geoff Jukes](https://github.com/geoffjukes)
- [Giampaolo](https://github.com/gpcimino)
- [Justin Charlong](https://github.com/jcharlong)
- [Louis Sautier](https://github.com/sbraz)
- [Martin Larralde](https://github.com/althonos)
- [Will McGugan](https://github.com/willmcgugan)
Expand Down
2 changes: 1 addition & 1 deletion fs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _method(*args, **kwargs):
""".format(
method.__name__
)
if hasattr(_method, "__doc__"):
if getattr(_method, "__doc__", None) is not None:
_method.__doc__ += deprecated_msg

return _method
Expand Down

0 comments on commit 34084cf

Please sign in to comment.