gpsd-commit-watch
[Top][All Lists]
Advanced

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

[gpsd-commit-watch] [SCM] GPSD branch, master, updated. release-3.16-260


From: Eric S. Raymond
Subject: [gpsd-commit-watch] [SCM] GPSD branch, master, updated. release-3.16-260-g80f65f4
Date: Sun, 10 Apr 2016 08:59:42 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GPSD".

The branch, master has been updated
       via  80f65f492805ab78bfac5f854a5dd4e1218b23aa (commit)
       via  4ce87b1b589e6241553d20c72716954cdb415210 (commit)
       via  f089f6d2dda9fa95bdf9b0e1e8ede9fa61ce087c (commit)
       via  7a98971bd84ee294cb233887243d32bdb1d29520 (commit)
       via  c1fc8432489e10ab08e2fc9c66312343e9245032 (commit)
      from  861588f1e7add685a4b1daaee89b08d5f33b3dc0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 80f65f492805ab78bfac5f854a5dd4e1218b23aa
Author: Fred Wright <address@hidden>
Date:   Sun Apr 10 01:02:05 2016 -0700

    Fixes devtools/*.py for Python 3.
    
    This applies the 2to3 fixes as well as integer division fixes to the
    four programs in devtools.  Most of these transformations are similar
    to ones used elsewhere, with the notable exception of the
    reraise_with_traceback() function in ais.py.
    
    TESTED:
    Ran identify_failing_build_options.py with both Python 2 and Python 3
    up through length 1, with identical results.  Did *not* test the other
    three programs.  Someone more familiar with their usage should do
    that.

commit 4ce87b1b589e6241553d20c72716954cdb415210
Author: Fred Wright <address@hidden>
Date:   Sat Apr 9 19:57:16 2016 -0700

    Makes "future imports" and Python version comments consistent.
    
    This makes the "future import" statements consistently specify
    absolute_import, print_function, and division, for maximum consistency
    between Python 2 and Python 3.  Although absolute_import is probably a
    don't care for top-level programs, if unit tests were ever implemented
    for the programs they would be imported as modules, making the module
    import behavior relevant.
    
    Note that previous Python 3 fixes are a prerequisite for this change.
    
    Also makes the "polyglot comment" consistent across sources.
    
    TESTED:
    Using a version of SConstruct patched to use the target Python for
    build helpers, ran "scons build-all check valgrind-audit
    www/hardware.html" with all six supported Python versions.  Also ran
    gegps, gpscat, gpsprof, xgps, and xgpsspeed with both Python 2 and
    Python 3.

commit f089f6d2dda9fa95bdf9b0e1e8ede9fa61ce087c
Author: Fred Wright <address@hidden>
Date:   Sat Apr 9 19:57:15 2016 -0700

    Removes non-ASCII characters from gps.h comments.
    
    Testing maskaudit.py with Python 3 revealed that two comments in gps.h
    (lines 285 and 294) were using non-ASCII minus signs in the comments.
    This resulted in exceptions with Python >=3.3 and LANG unset.  Since
    there's no intention to actually use non-ASCII characters here, it
    doesn't seem worthwhile to fix the code.
    
    TESTED:
    Using a version of SConstruct patched to use the target Python for
    build helpers, ran "scons build-all" with all six supported Python
    versions.

commit 7a98971bd84ee294cb233887243d32bdb1d29520
Author: Fred Wright <address@hidden>
Date:   Sat Apr 9 19:57:14 2016 -0700

    Fixes leapseconds.py for Python 3.
    
    This fixes two Python 3 issues with leapsecond.py:
    
    1) The urllib module is subdivided in Python 3.  Only the 'request'
    submodule is needed here.  Either that or the Python 2 urllib is now
    imported as 'urlrequest'.
    
    2) The data returned by urlopen() is 'bytes' in Python 3, requiring
    the polystr transformation to be usable as a string.
    
    Also, the (duplicate) isotime() definition here has been updated to
    match the version in gps/misc.py.  It is still duplicated to avoid a
    dependency on the latter, as is the needed portion of the polystr
    code.
    
    TESTED:
    Ran "scons build-all check".  Also ran "leapsecond.py -f" with all six
    supported Python versions, and verified that the result matches the
    existing leapseconds.cache.  Did *not* test the updated retrieve()
    function, but it's not used anywhere.

commit c1fc8432489e10ab08e2fc9c66312343e9245032
Author: Fred Wright <address@hidden>
Date:   Sat Apr 9 19:57:13 2016 -0700

    Fixes integer division for Python 3.
    
    This changes a few integer division cases to use the '//'
    floored-division operator, matching the normal Python 2 (C-like) '/'
    behavior, for compatibility with the switch to the "mathematical"
    divison operator in Python 3 (and in Python 2 with the "future
    division" import).  This was more about keeping the behavior the same
    than determining whether floored division is actually the proper
    choice.
    
    One place where floored division is definitely wanted is in the GPS
    week calculations in leapsecond.py, which are now OK for Python 3,
    though currently that module is only used by SConstruct, and hence not
    with Python 3.
    
    Two other minor fixes:
    
    1) The GPS base date is corrected in the comment in leapsecond.py.
    
    2) The fit_to_grid() function in xgps now consistently returns floats,
    rather than returning either ints or floats depending on the line
    width.
    
    TESTED:
    Ran "scons build-all check" with all 6 supported Python versions.
    Also ran xgps and xgpsspeed with all but 2.6.

-----------------------------------------------------------------------

Summary of changes:
 devtools/ais.py                            |   62 +++++++----
 devtools/identify_failing_build_options.py |   12 ++-
 devtools/tablegen.py                       |  156 +++++++++++++++------------
 devtools/test_json_validity.py             |    7 +-
 gegps                                      |    5 +-
 gps.h                                      |    4 +-
 gps/__init__.py                            |    4 +-
 gps/client.py                              |    2 +-
 gps/gps.py                                 |    2 +-
 gpscap.py                                  |    5 +-
 gpscat                                     |    2 +-
 gpsfake                                    |    2 +-
 gpsprof                                    |    5 +-
 jsongen.py                                 |    5 +-
 leapsecond.py                              |   99 ++++++++++++------
 maskaudit.py                               |    5 +-
 test_maidenhead.py                         |    2 +-
 valgrind-audit.py                          |    4 +-
 xgps                                       |   17 ++--
 xgpsspeed                                  |    7 +-
 20 files changed, 247 insertions(+), 160 deletions(-)


hooks/post-receive
-- 
GPSD



reply via email to

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