Skip to content

Commit

Permalink
Replace locale.getdefaultlocale with locale.getlocale
Browse files Browse the repository at this point in the history
  • Loading branch information
bebound committed Sep 12, 2023
1 parent c8109ff commit ba4951a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _get_azure_cli_properties(self):
lambda: _get_config().get('core', 'output', fallback='unknown'))
set_custom_properties(result, 'EnvironmentVariables', _get_env_string)
set_custom_properties(result, 'Locale',
lambda: '{},{}'.format(locale.getdefaultlocale()[0], locale.getdefaultlocale()[1])) # pylint:disable=deprecated-method
lambda: '{},{}'.format(locale.getlocale()[0], locale.getlocale()[1]))
set_custom_properties(result, 'StartTime', str(self.start_time))
set_custom_properties(result, 'EndTime', str(self.end_time))
set_custom_properties(result, 'InitTimeElapsed', str(self.init_time_elapsed))
Expand Down

0 comments on commit ba4951a

Please sign in to comment.