Changeset 7638:9b99d303e545 in orange


Ignore:
Timestamp:
02/10/11 14:18:39 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
92172c92b2aa17a9fb3a4a0b4c9b729334b0f2bb
Message:
  • fixed old style string exceptions
Location:
orange/doc/reference
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/reference/exampletable5.py

    r6538 r7638  
    1717    mid[0][1] += 1 
    1818    if pd0 != data[0][1]: 
    19         raise "reference when there shouldn't be" 
     19        raise Exception("reference when there shouldn't be") 
    2020 
    2121def testref(mid): 
     
    2323    mid[0][1] += 1 
    2424    if pd0 == data[0][1]: 
    25         raise "not reference when there should be" 
     25        raise Exception("not reference when there should be") 
    2626 
    2727filterany = orange.Filter_values() 
  • orange/doc/reference/output.py

    r526 r7638  
    1010    if c.innerVariable.varType != orange.VarTypes.Discrete or \ 
    1111       c.outerVariable.varType != orange.VarTypes.Discrete: 
    12         raise "printTabDelimContingency can only handle discrete contingencies" 
     12        raise Exception("printTabDelimContingency can only handle discrete contingencies") 
    1313     
    1414    res = "" 
  • orange/doc/reference/values.py

    r526 r7638  
    88 
    99def err(): 
    10     raise "Error" 
     10    raise Exception("Error") 
    1111 
    1212fruit = orange.EnumVariable("fruit", values = ["plum", "apple", "lemon"]) 
Note: See TracChangeset for help on using the changeset viewer.