Skip to content

Commit

Permalink
Merge branch '2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Jul 26, 2016
2 parents 87a7d4c + 9b129b2 commit 7e98b36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions paramiko/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,12 @@ def shutdown_write(self):
"""
self.shutdown(1)

@property
def _closed(self):
# Concession to Python 3's socket API, which has a private ._closed
# attribute instead of a semipublic .closed attribute.
return self.closed

### calls from Transport

def _set_transport(self, transport):
Expand Down
4 changes: 4 additions & 0 deletions sites/www/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changelog
=========

* :bug:`774 (1.16+)` Add a ``_closed`` private attribute to
`~paramiko.channel.Channel` objects so that they continue functioning when
used as proxy sockets under Python 3 (e.g. as ``direct-tcpip`` gateways for
other Paramiko connections.)
* :bug:`758 (1.16+)` Apply type definitions to ``_winapi`` module from
`jaraco.windows <https://github.com/jaraco/jaraco.windows>`_ 3.6.1. This
should address issues on Windows platforms that often result in errors like
Expand Down

0 comments on commit 7e98b36

Please sign in to comment.