Ignore:
Timestamp:
02/07/12 23:51:06 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Detect trivially detectable errorneous deprecated_members.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/misc/__init__.py

    r9938 r10020  
    679679    if environ.orange_no_deprecated_members: 
    680680        return lambda func: func 
     681    for name in name_map.values(): 
     682        if name in name_map: 
     683            raise ValueError("Deprecation keys and values overlap; this could" 
     684                             " cause trouble!") 
    681685     
    682686    def decorator(func): 
Note: See TracChangeset for help on using the changeset viewer.