A non-negative integer.
(x)
| 2218 | |
| 2219 | |
| 2220 | def is_natural(x): |
| 2221 | """A non-negative integer.""" |
| 2222 | try: |
| 2223 | is_integer = int(x) == x |
| 2224 | except (TypeError, ValueError): |
| 2225 | return False |
| 2226 | return is_integer and x >= 0 |
| 2227 | |
| 2228 | |
| 2229 | def undo_filter_sub(filter_unit, scanline, previous, result): |
no test coverage detected