mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-03 07:16:12 +02:00
Fixes for Python 3 Support
This commit is contained in:
parent
3052e0cce7
commit
634d84c77e
4 changed files with 28 additions and 13 deletions
|
@ -6,7 +6,9 @@ import getpass
|
|||
try: import simplejson as json
|
||||
except ImportError: import json
|
||||
import os
|
||||
import util
|
||||
try: from . import util
|
||||
except (SystemError, ValueError): import util
|
||||
|
||||
|
||||
def module_exists(module_name):
|
||||
"""Checks if a module exists and can be imported"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue