diff --git a/testing/mozbase/mozfile/mozfile/mozfile.py b/testing/mozbase/mozfile/mozfile/mozfile.py index 4313521b8f42..987f83a799fd 100644 --- a/testing/mozbase/mozfile/mozfile/mozfile.py +++ b/testing/mozbase/mozfile/mozfile/mozfile.py @@ -252,29 +252,11 @@ def depth(directory): return level -# ASCII delimeters -ascii_delimeters = { - 'vertical_line': '|', - 'item_marker': '+', - 'last_child': '\\' -} - -# unicode delimiters -unicode_delimeters = { - 'vertical_line': u'│', - 'item_marker': u'├', - 'last_child': u'└' -} - - -def tree(directory, - item_marker=unicode_delimeters['item_marker'], - vertical_line=unicode_delimeters['vertical_line'], - last_child=unicode_delimeters['last_child'], - sort_key=lambda x: x.lower()): - """ - display tree directory structure for `directory` - """ +def tree(directory, sort_key=lambda x: x.lower()): + """Display tree directory structure for `directory`.""" + vertical_line = u'│' + item_marker = u'├' + last_child = u'└' retval = [] indent = [] diff --git a/testing/mozbase/mozprofile/tests/test_profile_view.py b/testing/mozbase/mozprofile/tests/test_profile_view.py index cbb429f468d5..1db009ec657b 100644 --- a/testing/mozbase/mozprofile/tests/test_profile_view.py +++ b/testing/mozbase/mozprofile/tests/test_profile_view.py @@ -47,7 +47,7 @@ class TestProfilePrint(unittest.TestCase): def test_str_cast(self): """Test casting to a string.""" profile = mozprofile.Profile() - self.assertEqual(str(profile), profile.summary().encode("UTF-8")) + self.assertEqual(str(profile), profile.summary().encode("utf-8")) def test_unicode_cast(self): """Test casting to a unicode string."""