Changeset 10058:3fca856d77a2 in orange


Ignore:
Timestamp:
02/08/12 09:14:16 (2 years ago)
Author:
ales_erjavec
Branch:
default
rebase_source:
c87eecf36b4fe669d02d6d61292d7b0fb24ffa54
Message:

Using data.setattr to prevent a warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/misc/caching.py

    r9703 r10058  
    55    if not data: return None 
    66    if getattr(data, "info", None) == None or data.info["__version__"] != data.version: 
    7         setattr(data, "info", {"__version__": data.version}) 
     7        data.setattr("info", {"__version__": data.version}) 
    88 
    99    if data.info.has_key(funct): 
     
    2020    if not data: return 
    2121    if getattr(data, "info", None) == None or data.info["__version__"] != data.version: 
    22         setattr(data, "info", {"__version__": data.version}) 
     22        data.setattr("info", {"__version__": data.version}) 
    2323    data.info[name] = info 
    2424 
Note: See TracChangeset for help on using the changeset viewer.