Skip to content

Commit

Permalink
Remove deprecated code: config.save (deprecated since 2013.3). (PR #…
Browse files Browse the repository at this point in the history
…6875)

Partial fix for #6846, #667:

Removes deprecated `config.save`
  • Loading branch information
josephsl authored and feerrenrut committed Apr 4, 2017
1 parent 40e69d5 commit 02f1d5f
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions source/config/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: UTF-8 -*-
#config\__init__.py
#config/__init__.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2006-2016 NV Access Limited, Aleksey Sadovoy, Peter Vágner, Rui Batista, Zahari Yurukov
#Copyright (C) 2006-2017 NV Access Limited, Aleksey Sadovoy, Peter Vágner, Rui Batista, Zahari Yurukov, Joseph Lee
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.

Expand Down Expand Up @@ -38,15 +38,6 @@ def initialize():
global conf
conf = ConfigManager()

def save():
"""
@deprecated: Use C{conf.save} instead.
"""
import warnings
warnings.warn("config.save deprecated. Use config.conf.save instead.",
DeprecationWarning, 2)
conf.save()

def saveOnExit():
"""Save the configuration if configured to save on exit.
This should only be called if NVDA is about to exit.
Expand Down

0 comments on commit 02f1d5f

Please sign in to comment.