From 82fcd1b015d764d2a976691ecd0129cc1d3787b1 Mon Sep 17 00:00:00 2001 From: Satoshi Kobayashi Date: Tue, 14 Apr 2015 13:18:22 +0900 Subject: [PATCH] 'string.upper' and 'string.lower' has been deprecated in Python 3 Signed-off-by: Satoshi Kobayashi Signed-off-by: FUJITA Tomonori --- ryu/tests/unit/lib/test_stringify.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ryu/tests/unit/lib/test_stringify.py b/ryu/tests/unit/lib/test_stringify.py index 4b47fd22..da784149 100644 --- a/ryu/tests/unit/lib/test_stringify.py +++ b/ryu/tests/unit/lib/test_stringify.py @@ -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'))