def _get_localzone(): if winreg is None: raise pytz.UnknownTimeZoneError( 'Runtime support not available') return pytz.timezone(get_localzone_name())