Skip to content

Commit

Permalink
use 'd' for string.format() for int to string
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Dec 8, 2023
1 parent c770f4c commit 0b33db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epics/pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ def _getinfo(self):
if '_' in xtype:
mod, xtype = xtype.split('_')

fmt = '{val:i}'
fmt = '{val:d}'
if xtype in ('float','double'):
fmt = '{val:g}'
elif xtype in ('string','char'):
Expand Down

0 comments on commit 0b33db7

Please sign in to comment.