mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 22:16:13 +02:00
Cleaned up imports to work with Python2.6 and Python 3.3
This commit is contained in:
parent
40c2bc13b5
commit
d35502423a
7 changed files with 19 additions and 27 deletions
17
jrnl/cli.py
17
jrnl/cli.py
|
@ -7,17 +7,12 @@
|
|||
license: MIT, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
try:
|
||||
from . import Journal
|
||||
from . import util
|
||||
from . import exporters
|
||||
from . import install
|
||||
from . import __version__
|
||||
except (SystemError, ValueError):
|
||||
import Journal
|
||||
import util
|
||||
import exporters
|
||||
import install
|
||||
from __future__ import absolute_import
|
||||
from . import Journal
|
||||
from . import util
|
||||
from . import exporters
|
||||
from . import install
|
||||
from . import __version__
|
||||
import jrnl
|
||||
import os
|
||||
import argparse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue