1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

reorder imports so vendorized argparse works correctly

This commit is contained in:
William Ting 2013-05-21 07:28:39 -07:00
parent 3e6f115ed8
commit 590909bafc

View File

@ -21,14 +21,6 @@
from __future__ import division, print_function from __future__ import division, print_function
try:
import argparse
except ImportError:
# Python 2.6 support
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import autojump_argparse as argparse
sys.path.pop()
import collections import collections
import difflib import difflib
import math import math
@ -39,6 +31,14 @@ import shutil
import sys import sys
import tempfile import tempfile
try:
import argparse
except ImportError:
# Python 2.6 support
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import autojump_argparse as argparse
sys.path.pop()
class Database: class Database:
""" """
Object for interfacing with autojump database file. Object for interfacing with autojump database file.
@ -199,7 +199,7 @@ class Database:
def set_defaults(): def set_defaults():
config = {} config = {}
config['version'] = 'release-v21.6.6' config['version'] = 'release-v21.6.7'
config['max_paths'] = 1000 config['max_paths'] = 1000
config['separator'] = '__' config['separator'] = '__'
config['home'] = os.path.expanduser('HOME') config['home'] = os.path.expanduser('HOME')