Ignore:
Timestamp:
03/24/19 08:15:59 (4 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Ran 2to3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/util.py

    r784 r919  
    4343#------------------------------------------------------------------------------
    4444
    45 def getCoordinateString((latitude, longitude)):
     45def getCoordinateString(xxx_todo_changeme):
    4646    """Get the string representation of the given coordinate pair."""
    47 
     47    (latitude, longitude) = xxx_todo_changeme
    4848    latitude_str = getLatitudeString(latitude)
    4949    longitude_str = getLongitudeString(longitude)
     
    7979    (deg, min, sec, _sign) = getDegMinSec(degree)
    8080
    81     return u"%s%d\u00b0%02d\u2032%02d\u2033" % (prefix, deg, min, sec)
     81    return "%s%d\u00b0%02d\u2032%02d\u2033" % (prefix, deg, min, sec)
    8282
    8383#------------------------------------------------------------------------------
     
    175175    """Convert the given text from UTF-8 encoding to unicode."""
    176176    try:
    177         return unicode(_utf8decoder(text)[0])
     177        return str(_utf8decoder(text)[0])
    178178    except:
    179179        try:
    180             return unicode(_latin2decoder(text)[0])
     180            return str(_latin2decoder(text)[0])
    181181        except:
    182             return unicode(list(text))
     182            return str(list(text))
Note: See TracChangeset for help on using the changeset viewer.