diff options
Diffstat (limited to 'distbuild/socketsrc.py')
-rw-r--r-- | distbuild/socketsrc.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/distbuild/socketsrc.py b/distbuild/socketsrc.py index 15283140..daba1610 100644 --- a/distbuild/socketsrc.py +++ b/distbuild/socketsrc.py @@ -1,6 +1,6 @@ # mainloop/socketsrc.py -- events and event sources for sockets # -# Copyright (C) 2012, 2014 Codethink Limited +# Copyright (C) 2012, 2014-2015 Codethink Limited # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -12,8 +12,7 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.. +# with this program. If not, see <http://www.gnu.org/licenses/>. import fcntl @@ -78,7 +77,7 @@ class ListeningSocketEventSource(EventSource): if self._accepting and self.sock.fileno() in r: try: conn, addr = self.sock.accept() - except socket.error, e: + except socket.error as e: return [SocketError(self.sock, e)] else: logging.info( |