diff options
Diffstat (limited to 'ryu/lib/port_no.py')
-rw-r--r-- | ryu/lib/port_no.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ryu/lib/port_no.py b/ryu/lib/port_no.py index 33720f3c..0eb65635 100644 --- a/ryu/lib/port_no.py +++ b/ryu/lib/port_no.py @@ -17,8 +17,7 @@ # string representation is in hex without '0x' _PORT_NO_LEN = 8 -_PORT_NO_LEN_STR = str(_PORT_NO_LEN) -_PORT_NO_FMT = '%0' + _PORT_NO_LEN_STR + 'x' +_PORT_NO_FMT = '%0{0}x'.format(_PORT_NO_LEN) PORT_NO_PATTERN = r'[0-9a-f]{%d}' % _PORT_NO_LEN |