Skip to content

Commit

Permalink
Fix #59: UnicodeDecodeError
Browse files Browse the repository at this point in the history
  • Loading branch information
r4fek committed Apr 21, 2016
1 parent 8122d55 commit 7af665c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages

import django_cassandra_engine as meta
Expand All @@ -8,10 +9,10 @@

try:
with open('README.rst', 'r') as f:
LONG_DESCRIPTION = f.read()
LONG_DESCRIPTION = f.read().decode('utf-8')
except IOError:
with open('README.md', 'r') as f:
LONG_DESCRIPTION = f.read()
LONG_DESCRIPTION = f.read().decode('utf-8')

with open('requirements.txt', 'r') as f:
DEPENDENCIES = f.read().splitlines()
Expand Down

0 comments on commit 7af665c

Please sign in to comment.