
from ..common import ReadOnlyDataStructure

class WorldcatData (ReadOnlyDataStructure):

    @property
    def title (self):
        return self.get("title")

    def __iter__ (self):
        return iter(self.get("libraries", ()))


from ..common import ReadOnlyDataStructure

class WorldcatData (ReadOnlyDataStructure):

    auto_properties = ("title",)

    def __iter__ (self):
        return iter(self.get("libraries", ()))

Use new property format for WorldcatData
Use new property format for WorldcatData

  
  from ..common import ReadOnlyDataStructure
  
  class WorldcatData (ReadOnlyDataStructure):
  
+     auto_properties = ("title",)
-     @property
-     def title (self):
-         return self.get("title")
  
      def __iter__ (self):
          return iter(self.get("libraries", ()))
  
Use new property format for WorldcatData
## Code Before:

from ..common import ReadOnlyDataStructure

class WorldcatData (ReadOnlyDataStructure):

    @property
    def title (self):
        return self.get("title")

    def __iter__ (self):
        return iter(self.get("libraries", ()))

## Instruction:
Use new property format for WorldcatData
## Code After:

from ..common import ReadOnlyDataStructure

class WorldcatData (ReadOnlyDataStructure):

    auto_properties = ("title",)

    def __iter__ (self):
        return iter(self.get("libraries", ()))
