Skip to content

Commit 43a814d

Browse files
author
cclauss
authored
Define unicode for Python 3
1 parent b20e1ca commit 43a814d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

snappy/snappy_cffi.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
from _snappy_cffi import ffi, lib
22

3+
try:
4+
unicode # Python 2
5+
except NameError:
6+
unicode = str # Python 3
7+
8+
39
class UncompressError(Exception):
410
pass
511

12+
613
class SnappyBufferSmallError(Exception):
714
pass
815

0 commit comments

Comments
 (0)