Skip to content

Commit

Permalink
Bug 1720951 - Removed unused 'ensure_bytes()' and 'ensure_unicode()' …
Browse files Browse the repository at this point in the history
…from runxpcshelltests.py r=mhentges

Since the functions 'ensure_bytes()' and 'ensure_unicode()' were unused, hence removed.

Differential Revision: https://phabricator.services.mozilla.com/D120600
  • Loading branch information
surajeet310 committed Jul 22, 2021
1 parent c734740 commit 76ad0a6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions testing/xpcshell/runxpcshelltests.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,6 @@ def cleanup_encoding(s):
return _cleanup_encoding_re.sub(_cleanup_encoding_repl, s)


def ensure_bytes(value, encoding="utf-8"):
if isinstance(value, six.text_type):
return value.encode(encoding)
return value


def ensure_unicode(value, encoding="utf-8"):
if isinstance(value, six.binary_type):
return value.decode(encoding)
return value


""" Control-C handling """
gotSIGINT = False

Expand Down

0 comments on commit 76ad0a6

Please sign in to comment.