|
14 | 14 |
|
15 | 15 | """Captures application state on a breakpoint hit.""" |
16 | 16 |
|
17 | | -# TODO(vlif): rename this file to collector.py. |
| 17 | +# TODO: rename this file to collector.py. |
18 | 18 |
|
19 | 19 | import copy |
20 | 20 | import datetime |
|
53 | 53 | _DATE_TYPES = (datetime.date, datetime.time, datetime.timedelta) |
54 | 54 | _VECTOR_TYPES = (tuple, list, set) |
55 | 55 |
|
56 | | -# TODO(vlif): move to messages.py module. |
| 56 | +# TODO: move to messages.py module. |
57 | 57 | EMPTY_DICTIONARY = 'Empty dictionary' |
58 | 58 | EMPTY_COLLECTION = 'Empty collection' |
59 | 59 | OBJECT_HAS_NO_FIELDS = 'Object has no fields' |
@@ -396,7 +396,7 @@ def CaptureNamedVariable(self, name, value, depth, limits): |
396 | 396 | """ |
397 | 397 | if not hasattr(name, '__dict__'): |
398 | 398 | name = str(name) |
399 | | - else: # TODO(vlif): call str(name) with immutability verifier here. |
| 399 | + else: # TODO: call str(name) with immutability verifier here. |
400 | 400 | name = str(id(name)) |
401 | 401 | self._total_size += len(name) |
402 | 402 |
|
@@ -488,8 +488,8 @@ def CaptureVariable(self, value, depth, limits, can_enqueue=True): |
488 | 488 | def CaptureVariableInternal(self, value, depth, limits, can_enqueue=True): |
489 | 489 | """Captures a single nameless object into Variable message. |
490 | 490 |
|
491 | | - TODO(vlif): safely evaluate iterable types. |
492 | | - TODO(vlif): safely call str(value) |
| 491 | + TODO: safely evaluate iterable types. |
| 492 | + TODO: safely call str(value) |
493 | 493 |
|
494 | 494 | Args: |
495 | 495 | value: data to capture |
@@ -537,7 +537,7 @@ def CaptureVariableInternal(self, value, depth, limits, can_enqueue=True): |
537 | 537 |
|
538 | 538 | if isinstance(value, types.FunctionType): |
539 | 539 | self._total_size += len(value.__name__) |
540 | | - # TODO(vlif): set value to func_name and type to 'function' |
| 540 | + # TODO: set value to func_name and type to 'function' |
541 | 541 | return {'value': 'function ' + value.__name__} |
542 | 542 |
|
543 | 543 | if isinstance(value, Exception): |
@@ -567,7 +567,7 @@ def CaptureVariableInternal(self, value, depth, limits, can_enqueue=True): |
567 | 567 | 'type': object_type} |
568 | 568 |
|
569 | 569 | if not hasattr(value, '__dict__'): |
570 | | - # TODO(vlif): keep "value" empty and populate the "type" field instead. |
| 570 | + # TODO: keep "value" empty and populate the "type" field instead. |
571 | 571 | r = str(type(value)) |
572 | 572 | self._total_size += len(r) |
573 | 573 | return {'value': r} |
|
0 commit comments