gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Git][gpsd/gpsd][master] gegps: Simplify open() fix.


From: Gary E. Miller
Subject: Re: [Git][gpsd/gpsd][master] gegps: Simplify open() fix.
Date: Tue, 12 Dec 2023 23:19:04 -0800

Yo Fred!

> Thatg's not gonna work.  Python 2.7 does not allow open(,encoding=_'

> +                with open(os.path.join(options.kmldir,
> +                          'Realtime_GPS.kml'), 'w', encoding="utf8")


From the Python 2.7 man page:

https://python.readthedocs.io/en/v2.7.2/library/functions.html#open

open() does not support encoding=

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgppai1TvoPPR.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]