0031-misc-fix-no-else-break-pylint-error-56982.patch
src/authentic2/attributes_ng/engine.py | ||
---|---|---|
60 | 60 |
unsorted = new_unsorted |
61 | 61 |
if len(sorted_list) == len(source_and_instances): # finished ! |
62 | 62 |
break |
63 |
elif count_sorted == len(sorted_list): # no progress !
|
|
63 |
if count_sorted == len(sorted_list): # no progress ! |
|
64 | 64 |
if raise_on_unsortable: |
65 | 65 |
raise UnsortableError(sorted_list, unsorted) |
66 | 66 |
logger = logging.getLogger(__name__) |
src/authentic2/natural_key.py | ||
---|---|---|
83 | 83 |
if isinstance(field, GenericForeignKey): |
84 | 84 |
if isnull and value: |
85 | 85 |
break |
86 |
elif not isnull:
|
|
86 |
if not isnull: |
|
87 | 87 |
if not value: |
88 | 88 |
break |
89 | 89 |
try: |
... | ... | |
105 | 105 |
elif field.is_relation: |
106 | 106 |
if isnull and value: |
107 | 107 |
break |
108 |
elif not isnull:
|
|
108 |
if not isnull: |
|
109 | 109 |
if not value: |
110 | 110 |
break |
111 | 111 |
try: |
112 |
- |