Skip to content
Myr

Merge branch '2.x-maintenance'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parents c3c0090, dc2a4d1 · Browse files · 2 files+11 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+11 added−3 removed

  • other:+11 added−3 removed

2 files+11 added−3 removed

modified:click/_compat.py+3 added-3 removed
97 unmodified lines
9899 def readable(self):100 x = getattr(self._stream, 'readable', None)101 if x is not None:102 return x102 return x()103 try:104 self._stream.read(0)105 except Exception:106 return False
1 unmodified line
108109 def writable(self):110 x = getattr(self._stream, 'writable', None)111 if x is not None:112 return x112 return x()113 try:114 self._stream.write('')115 except Exception:116 try:
4 unmodified lines
121122 def seekable(self):123 x = getattr(self._stream, 'seekable', None)124 if x is not None:125 return x125 return x()126 try:127 self._stream.seek(self._stream.tell())128 except Exception:129 return False
428 unmodified lines
modified:CHANGES+8 added
21 unmodified lines
22 passing. This should catch situations where users wanted to23 created arguments instead of options.24- Restructured Click internally to support vendoring.2526Version 2.627-----------2829(bugfix release, release date to be decided)3031- Fixed an issue where the wrapped streams on Python 3 would be reporting32 incorrect values for seekable.3334Version 2.535-----------3637(bugfix release, released on July 28th 2014)
102 unmodified lines