Skip to content

Commit

Permalink
Merge pull request #2 from tsunaminoai/hotfix-issue-1
Browse files Browse the repository at this point in the history
Change unicode block size for linux to be the same as for Python3.
  • Loading branch information
tsunaminoai committed Apr 4, 2017
2 parents d5acdf8 + ec38952 commit b88b95f
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
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
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 b88b95f

Please sign in to comment.