Python 2.7: Copy list using slice

This commit is contained in:
Konrad Cempura 2018-07-15 23:22:44 +02:00
parent 88efa69cfd
commit b8c03d90f4

View file

@ -81,7 +81,7 @@ class Schema(object):
)
def get_all_required_properties_names(self):
required = self.required.copy()
required = self.required[:]
for subschema in self.all_of:
subschema_req = subschema.get_all_required_properties()