aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xexamples/network/fortuneserver.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/network/fortuneserver.py b/examples/network/fortuneserver.py
index 852aabaf..692c5bd3 100755
--- a/examples/network/fortuneserver.py
+++ b/examples/network/fortuneserver.py
@@ -97,13 +97,6 @@ class Server(QtWidgets.QDialog):
out.writeUInt16(0)
fortune = self.fortunes[random.randint(0, len(self.fortunes) - 1)]
- try:
- # Python v3.
- fortune = bytes(fortune, encoding='ascii')
- except:
- # Python v2.
- pass
-
out.writeString(fortune)
out.device().seek(0)
out.writeUInt16(block.size() - 2)