Remove deprecated validation function.#5932
Conversation
| return errorStrings | ||
|
|
||
| #: @deprecated: Use C{conf.validator} instead. | ||
| val = Validator() |
There was a problem hiding this comment.
You've removed the deprecation note here, but not the variable. We may as well remove this variable too and instead make ConfigManager instantiate Validator directly.
There was a problem hiding this comment.
um, fail on my part.
On 6/9/2016 6:01 PM, James Teh wrote:
In source/config/init.py
#5932 (comment):
if v is True:continuenewKeyList=list(keyList) if keyList is not None else []newKeyList.append(k)if isinstance(v,dict):errorStrings.extend(validateConfig(configObj[k],validator,v,newKeyList))else:#If a key is invalid configObj does not record its default, thus we need to get and set the default manuallydefaultValue=validator.get_default_value(configObj.configspec[k])configObj[k]=defaultValueif k not in configObj.defaults:configObj.defaults.append(k)errorStrings.append("%s: %s, defaulting to %s"%(k,v,defaultValue))- return errorStrings
-#: @deprecated: Use C{conf.validator} instead.
val = Validator()You've removed the deprecation note here, but not the variable. We may
as well remove this variable too and instead make ConfigManager
instantiate Validator directly.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nvaccess/nvda/pull/5932/files/ad494d45126e9b22df7a0056f84aba9dfafdcef7#r66542894,
or mute the thread
https://github.com/notifications/unsubscribe/AFGivWQGa2KLS-F7ddaC3KKtp4Hhdp0bks5qKKlrgaJpZM4IY4RQ.
Derek Riemer
- Department of computer science, third year undergraduate student.
- Proud user of the NVDA screen reader.
- Open source enthusiast.
- Member of Bridge Cu
- Avid skiier.
Websites:
Honors portfolio http://derekriemer.com
Awesome little hand built weather app!
http://django.derekriemer.com/weather/
email me at derek.riemer@colorado.edu mailto:derek.riemer@colorado.edu
Phone: (303) 906-2194
|
Hi, |
|
val just gets assigned to Validator(). So just move that Validator()
down to the assignment of self.validator.
|
|
Friendly ping? See my last comment about how to proceed with this. |
|
Hi, I'll take care of this in a separate issue/PR combo. Thanks. |
|
Thanks @josephsl you finished this before I got to it again, closing. |
Removes validation function that has been there for several NVDA versions now.