misc: pylint fix access-member-before-definition (#52222)
This commit is contained in:
parent
6ac7eb4a43
commit
9d7692cbab
|
@ -547,12 +547,11 @@ class Field:
|
|||
|
||||
def migrate(self):
|
||||
changed = False
|
||||
if getattr(self, 'in_listing', None) is not None:
|
||||
if self.in_listing:
|
||||
self.display_locations = self.display_locations[:]
|
||||
self.display_locations.append('listings')
|
||||
changed = True
|
||||
self.in_listing = None
|
||||
if getattr(self, 'in_listing', None):
|
||||
self.display_locations = self.display_locations[:]
|
||||
self.display_locations.append('listings')
|
||||
changed = True
|
||||
self.in_listing = None
|
||||
# repair dictionary attributes that may have been kept as bytes in
|
||||
# the initial python 2 -> 3 conversion.
|
||||
from wcs.qommon.storage import deep_bytes2str
|
||||
|
|
Loading…
Reference in New Issue