Skip to content

Commit

Permalink
Change unicode block size for linux to be the same as for Python3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Craton committed Apr 4, 2017
1 parent d5acdf8 commit ec38952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion baseEmoji/baseEmoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
import json
import struct
import platform
from uniseg import graphemecluster as gc
from uniseg import codepoint as cp
from pkg_resources import get_distribution
Expand Down Expand Up @@ -100,7 +101,7 @@ def decode(d,spacing=''):
continue

#Block sizes of unicode change between py2 and 3
if (sys.version_info > (3, 0)):
if (sys.version_info > (3, 0)) or platform.system() == 'Linux':
block_size = 2
else:
block_size = 4
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="baseEmoji",
version = '0.1.0',
version = '0.1.1',
description="A simple base1024 encoder that outputs emoji.",
long_description='baseEmoji is a base1024 encoding scheme that uses emoji as its lookup table. The primary purpose is to represent otherwise ugly data in more "pleasing" form in social media.',
classifiers=[
Expand Down

0 comments on commit ec38952

Please sign in to comment.