62f953657bed8ee059fcf1cb159b8ff179d1b837,medpy/utilities/argparseu.py,,__sequenceGt,#Any#,143

Before Change


def __sequenceGt(l):
    "Test a sequences values for being greater than 0."
    for e in l:
        if 0 >= e: argparse.ArgumentTypeError("All values have to be greater than 0.")
    return l

def __sequenceGe(l):
    "Test a sequences values for being greater than or equal to 0."

After Change


def __sequenceGt(l):
    "Test a sequences values for being greater than 0."
    for e in l:
        if 0 >= e: raise argparse.ArgumentTypeError("All values have to be greater than 0.")
    return l

def __sequenceGe(l):
    "Test a sequences values for being greater than or equal to 0."
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: loli/medpy
Commit Name: 62f953657bed8ee059fcf1cb159b8ff179d1b837
Time: 2013-07-08
Author: oskar.maier@googlemail.com
File Name: medpy/utilities/argparseu.py
Class Name:
Method Name: __sequenceGt


Project Name: loli/medpy
Commit Name: 62f953657bed8ee059fcf1cb159b8ff179d1b837
Time: 2013-07-08
Author: oskar.maier@googlemail.com
File Name: medpy/utilities/argparseu.py
Class Name:
Method Name: __sequenceLt


Project Name: loli/medpy
Commit Name: 62f953657bed8ee059fcf1cb159b8ff179d1b837
Time: 2013-07-08
Author: oskar.maier@googlemail.com
File Name: medpy/utilities/argparseu.py
Class Name:
Method Name: __sequenceGe


Project Name: loli/medpy
Commit Name: 62f953657bed8ee059fcf1cb159b8ff179d1b837
Time: 2013-07-08
Author: oskar.maier@googlemail.com
File Name: medpy/utilities/argparseu.py
Class Name:
Method Name: __sequenceLe