Skip to content

Commit

Permalink
added dnf.i18n.ucd* functions as deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Silhan committed Nov 6, 2015
1 parent 9ffc93c commit 6c355d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dnf/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def setup_stdout():


def ucd_input(ucstring):
# :api, deprecated in 2.0.0, will be erased when python2 is abandoned
""" It uses print instead of passing the prompt to raw_input.
raw_input doesn't encode the passed string and the output
Expand All @@ -110,6 +111,7 @@ def ucd_input(ucstring):


def ucd(obj):
# :api, deprecated in 2.0.0, will be erased when python2 is abandoned
""" Like the builtin unicode() but tries to use a reasonable encoding. """
if dnf.pycomp.PY3:
if dnf.pycomp.is_py3bytes(obj):
Expand Down

0 comments on commit 6c355d0

Please sign in to comment.