EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
993 stars 155 forks source link

l10n.y needs to use locale.format_string(), not locale.format() #1061

Closed Athanasius closed 2 years ago

Athanasius commented 3 years ago
C:\Users\Athan\Documents\Devel\EDMarketConnector\l10n.py:254: DeprecationWarning: use _Locale.string_from_number instead.
  warnings.warn(DeprecationWarning('use _Locale.string_from_number instead.'))
C:\Users\Athan\Documents\Devel\EDMarketConnector\l10n.py:290: DeprecationWarning: This method will be removed in a future version of Python. Use 'locale.format_string()' instead.
  return locale.format('%.*f', (decimals, number), True)  # type: ignore  # It ends up working out
Athanasius commented 2 years ago

Fixed a while ago.