projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Collapse redundant exceptions
[mudpy.git]
/
mudpy
/
misc.py
diff --git
a/mudpy/misc.py
b/mudpy/misc.py
index
ecab471
..
d753559
100644
(file)
--- a/
mudpy/misc.py
+++ b/
mudpy/misc.py
@@
-1,6
+1,6
@@
"""Miscellaneous functions for the mudpy engine."""
"""Miscellaneous functions for the mudpy engine."""
-# Copyright (c) 2004-20
19
mudpy authors. Permission to use, copy,
+# Copyright (c) 2004-20
20
mudpy authors. Permission to use, copy,
# modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
# modify, and distribute this software is granted under terms
# provided in the LICENSE file distributed with this software.
@@
-850,7
+850,7
@@
class User:
# check for some input
try:
raw_input = self.connection.recv(1024)
# check for some input
try:
raw_input = self.connection.recv(1024)
- except
(BlockingIOError, OSError)
:
+ except
OSError
:
raw_input = b""
# we got something
raw_input = b""
# we got something