Wrapper for :func:`ZoneInfoFile.zones.get`. This is a convenience method for retrieving zones from the zone dictionary. :param name: The name of the zone to retrieve. (Generally IANA zone names) :param default: The value to return in the eve
(self, name, default=None)
| 112 | self.metadata = None |
| 113 | |
| 114 | def get(self, name, default=None): |
| 115 | """ |
| 116 | Wrapper for :func:`ZoneInfoFile.zones.get`. This is a convenience method |
| 117 | for retrieving zones from the zone dictionary. |
| 118 | |
| 119 | :param name: |
| 120 | The name of the zone to retrieve. (Generally IANA zone names) |
| 121 | |
| 122 | :param default: |
| 123 | The value to return in the event of a missing key. |
| 124 | |
| 125 | .. versionadded:: 2.6.0 |
| 126 | |
| 127 | """ |
| 128 | return self.zones.get(name, default) |
| 129 | |
| 130 | |
| 131 | # The current API has gettz as a module function, although in fact it taps into |
no outgoing calls