Skip to content

Commit 6d313a6

Browse files
author
Matthew Fisher
committed
chore(client): remove deprecated settings file converter
1 parent c4efc67 commit 6d313a6

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

client/deis.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,6 @@ def __init__(self):
174174
self._path = os.path.join(path, 'client.json')
175175
if not os.path.exists(self._path):
176176
settings = {}
177-
# try once to convert the old settings file if it exists
178-
# FIXME: this code can be removed in November 2014 or thereabouts, that's long enough.
179-
old_path = os.path.join(path, 'client.yaml')
180-
if os.path.exists(old_path):
181-
try:
182-
with open(old_path, 'r') as f:
183-
txt = f.read()
184-
txt = txt.replace('{', '{"', 1).replace(':', '":', 1).replace("'", '"')
185-
settings = json.loads(txt)
186-
os.remove(old_path)
187-
except:
188-
pass # ignore errors, at least we tried to convert it
189177
with open(self._path, 'w') as f:
190178
json.dump(settings, f)
191179
# load initial settings

0 commit comments

Comments
 (0)