Skip to content

Commit

Permalink
Adopted installable for Py3
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Mar 8, 2016
1 parent 38f16df commit ada56ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from setuptools import setup, find_packages
from adminsortable2 import __version__
try:
from pypandoc import convert
except ImportError:
import io

def convert(filename, fmt):
with open(filename) as fd:
with io.open(filename, encoding='utf-8') as fd:
return fd.read()

DESCRIPTION = 'Generic drag-and-drop sorting for the List, the Stacked- and the Tabular-Inlines Views in the Django Admin'
Expand Down

0 comments on commit ada56ac

Please sign in to comment.