mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Revert "Merge branch 'wting_create_temp_file_on_same_device'"
This reverts commitcf358d8fd3
, reversing changes made to8eace445a7
.
This commit is contained in:
parent
cf358d8fd3
commit
daa496bc39
@ -65,7 +65,7 @@ from autojump_utils import sanitize
|
|||||||
from autojump_utils import take
|
from autojump_utils import take
|
||||||
from autojump_utils import unico
|
from autojump_utils import unico
|
||||||
|
|
||||||
VERSION = '22.5.2'
|
VERSION = '22.5.1'
|
||||||
FUZZY_MATCH_THRESHOLD = 0.6
|
FUZZY_MATCH_THRESHOLD = 0.6
|
||||||
TAB_ENTRIES_COUNT = 9
|
TAB_ENTRIES_COUNT = 9
|
||||||
TAB_SEPARATOR = '__'
|
TAB_SEPARATOR = '__'
|
||||||
|
@ -120,12 +120,11 @@ def migrate_osx_xdg_data(config):
|
|||||||
|
|
||||||
def save(config, data):
|
def save(config, data):
|
||||||
"""Save data and create backup, creating a new data file if necessary."""
|
"""Save data and create backup, creating a new data file if necessary."""
|
||||||
data_dir = os.path.dirname(config['data_path'])
|
create_dir(os.path.dirname(config['data_path']))
|
||||||
create_dir(data_dir)
|
|
||||||
|
|
||||||
# atomically save by writing to temporary file and moving to destination
|
# atomically save by writing to temporary file and moving to destination
|
||||||
try:
|
try:
|
||||||
temp = NamedTemporaryFile(delete=False, dir=data_dir)
|
temp = NamedTemporaryFile(delete=False)
|
||||||
# Windows cannot reuse the same open file name
|
# Windows cannot reuse the same open file name
|
||||||
temp.close()
|
temp.close()
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.\" Automatically generated by Pandoc 1.16.0.2
|
.\" Automatically generated by Pandoc 1.16.0.2
|
||||||
.\"
|
.\"
|
||||||
.TH "autojump" "1" "2018\-09\-07" "release\-v22.5.2" ""
|
.TH "autojump" "1" "2018\-09\-06" "release\-v22.5.1" ""
|
||||||
.hy
|
.hy
|
||||||
.SS NAME
|
.SS NAME
|
||||||
.PP
|
.PP
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
% autojump(1) release-v22.5.2
|
% autojump(1) release-v22.5.1
|
||||||
%
|
%
|
||||||
% 2018-09-07
|
% 2018-09-06
|
||||||
|
Loading…
Reference in New Issue
Block a user