Skip to content

backwards compatibility code for service bus topic max_size_in_mega_bytes #36

@huguesv

Description

@huguesv

The following code in init(azure.servicebus) doesn't seem to be working:

@property def max_size_in_mega_bytes(self): import warnings warnings.warn('This attribute has been changed to max_size_in_megabytes.') return self.max_size_in_megabytes

I would have expected that it would prevent an ERROR, but that isn't the case.

topic_options = Topic()
topic_options.max_size_in_megabytes = 5120
val = topic_options.max_size_in_mega_bytes

The last line generates an error that the attribute doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions