Skip to content

Commit 07f0ca8

Browse files
conflicts
2 parents 6248525 + 55ff270 commit 07f0ca8

File tree

9 files changed

+924
-7
lines changed

9 files changed

+924
-7
lines changed

minecraft/compat.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""
2+
This module stores code used for making pyCraft compatible with
3+
both Python2 and Python3 while using the same codebase.
4+
"""
5+
6+
import six
7+
8+
# ### LONG ###
9+
if six.PY3:
10+
long = int
11+
else: # pragma: no cover
12+
long = long

minecraft/exceptions.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,19 @@ class IgnorePacket(Exception):
8181
`PacketReactor.react' or a packet listener added with
8282
`Connection.register_packet_listener', to stop any subsequent handlers
8383
from being called on that particular packet.
84+
Base ``Exception`` for the Yggdrasil authentication service.
85+
"""
86+
87+
88+
class DeserializationError(Exception):
89+
"""
90+
``Exception`` raised when something went wrong during the deserialization
91+
process.
92+
"""
93+
94+
95+
class SerializationError(Exception):
96+
"""
97+
``Exception`` raised when something went wrong during the serialization
98+
process.
8499
"""

0 commit comments

Comments
 (0)