mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-10 23:06:10 +02:00
'string.upper' and 'string.lower' has been deprecated in Python 3
Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
8e0e09ec64
commit
82fcd1b015
@ -52,13 +52,12 @@ class Test_stringify(unittest.TestCase):
|
||||
eq_(j, c.to_jsondict())
|
||||
|
||||
def test_jsondict2(self):
|
||||
import string
|
||||
|
||||
def my_encode(x):
|
||||
return string.lower(x)
|
||||
return x.lower()
|
||||
|
||||
def my_decode(x):
|
||||
return string.upper(x)
|
||||
return x.upper()
|
||||
|
||||
j = {'C1': {'a': 'aaa', 'c': 'ccc'}}
|
||||
eq_(j['C1']['a'], my_encode('AAA'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user