Merge pull request #12899 from anntzer/cleanup · matplotlib/matplotlib@7875bc5 · GitHub
Skip to content

Commit 7875bc5

Browse files
authored
Merge pull request #12899 from anntzer/cleanup
Small cleanups.
2 parents 4d1380f + 9162616 commit 7875bc5

3 files changed

Lines changed: 19 additions & 44 deletions

File tree

lib/matplotlib/backends/backend_pgf.py

Lines changed: 11 additions & 35 deletions

lib/matplotlib/cbook/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,14 @@ def is_hashable(obj):
360360

361361

362362
def is_writable_file_like(obj):
363-
"""return true if *obj* looks like a file object with a *write* method"""
363+
"""Return whether *obj* looks like a file object with a *write* method."""
364364
return callable(getattr(obj, 'write', None))
365365

366366

367367
def file_requires_unicode(x):
368368
"""
369-
Returns `True` if the given writable file-like object requires Unicode
370-
to be written to it.
369+
Returns whether the given writable file-like object requires Unicode to be
370+
written to it.
371371
"""
372372
try:
373373
x.write(b'')

lib/matplotlib/image.py

Lines changed: 5 additions & 6 deletions

0 commit comments

Comments
 (0)