Revision 876fb142 lib/cli.py
b/lib/cli.py | ||
---|---|---|
345 | 345 |
} |
346 | 346 |
|
347 | 347 |
|
348 |
class _Argument: |
|
348 |
class _Argument(object):
|
|
349 | 349 |
def __init__(self, min=0, max=None): # pylint: disable=W0622 |
350 | 350 |
self.min = min |
351 | 351 |
self.max = max |
... | ... | |
2108 | 2108 |
raise errors.OpExecError(result) |
2109 | 2109 |
|
2110 | 2110 |
|
2111 |
class JobPollCbBase: |
|
2111 |
class JobPollCbBase(object):
|
|
2112 | 2112 |
"""Base class for L{GenericPollJob} callbacks. |
2113 | 2113 |
|
2114 | 2114 |
""" |
... | ... | |
2136 | 2136 |
raise NotImplementedError() |
2137 | 2137 |
|
2138 | 2138 |
|
2139 |
class JobPollReportCbBase: |
|
2139 |
class JobPollReportCbBase(object):
|
|
2140 | 2140 |
"""Base class for L{GenericPollJob} reporting callbacks. |
2141 | 2141 |
|
2142 | 2142 |
""" |
... | ... | |
2790 | 2790 |
return 0 |
2791 | 2791 |
|
2792 | 2792 |
|
2793 |
class _RunWhileClusterStoppedHelper: |
|
2793 |
class _RunWhileClusterStoppedHelper(object):
|
|
2794 | 2794 |
"""Helper class for L{RunWhileClusterStopped} to simplify state management |
2795 | 2795 |
|
2796 | 2796 |
""" |
... | ... | |
3073 | 3073 |
raise NotImplementedError("Can't format column type '%s'" % fdef.kind) |
3074 | 3074 |
|
3075 | 3075 |
|
3076 |
class _QueryColumnFormatter: |
|
3076 |
class _QueryColumnFormatter(object):
|
|
3077 | 3077 |
"""Callable class for formatting fields of a query. |
3078 | 3078 |
|
3079 | 3079 |
""" |
... | ... | |
3347 | 3347 |
return constants.EXIT_SUCCESS |
3348 | 3348 |
|
3349 | 3349 |
|
3350 |
class TableColumn: |
|
3350 |
class TableColumn(object):
|
|
3351 | 3351 |
"""Describes a column for L{FormatTable}. |
3352 | 3352 |
|
3353 | 3353 |
""" |
Also available in: Unified diff