mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-03 07:16:12 +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
|
@ -1,14 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from __future__ import absolute_import
|
||||
import readline
|
||||
import glob
|
||||
import getpass
|
||||
try: import simplejson as json
|
||||
except ImportError: import json
|
||||
import json
|
||||
import os
|
||||
try: from . import util
|
||||
except (SystemError, ValueError): import util
|
||||
from . import util
|
||||
|
||||
|
||||
def module_exists(module_name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue