Skip to content

Commit 31038be

Browse files
committed
Use python3-enforced explicit relative imports
Starting with Python 2.6 these are available without further redo. In Python 2.5 you need the statement: from __future__ import absolute_import For further information on Python2 v Python3 portability issues, see: http://docs.python.org/3/howto/pyporting.html
1 parent 251815d commit 31038be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎pypandoc/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
from pypandoc import convert
2+
from .pypandoc import convert
33

44
__author__ = 'Juho Vepsäläinen'
55
__version__ = '0.6.0'

‎pypandoc/test_pypandoc.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
import unittest
33
import tempfile
4-
import pypandoc
4+
from . import pypandoc
55

66

77
def test_converter(to, format=None, extra_args=()):

0 commit comments

Comments
 (0)