<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/2714f1fb46c12bc5ddc647976eccfa77168b5e15">https://github.com/macports/macports-ports/commit/2714f1fb46c12bc5ddc647976eccfa77168b5e15</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 2714f1f gpsd: update to 3.19
</span>2714f1f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2714f1fb46c12bc5ddc647976eccfa77168b5e15
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Thu Jul 11 16:15:24 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> gpsd: update to 3.19
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> As of this version, no patches to the upstream code are needed.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> The workaround for issue 50347 has also been removed, since it
</span><span style='display:block; white-space:pre;color:#404040;'> is no longer nexessary.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This points the -devel version at the upstream sources as of
</span><span style='display:block; white-space:pre;color:#404040;'> 10-Jul-2019.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Note that the xgps variant doesn't currently work on 10.5, due
</span><span style='display:block; white-space:pre;color:#404040;'> to a problem with gtk3 for 10.5.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> Used "port test" and "port install" as the primary test, with the
</span><span style='display:block; white-space:pre;color:#404040;'> default variants, all binary variants with the default python27, each
</span><span style='display:block; white-space:pre;color:#404040;'> single binary variant with the default python27, and the xgps variant
</span><span style='display:block; white-space:pre;color:#404040;'> (except on 10.5) with each non-default python. Ran this on a
</span><span style='display:block; white-space:pre;color:#404040;'> MacPro/10.9, a MacPro/10.14, a MacBook Pro/10.9, a PowerBook G4/10.5,
</span><span style='display:block; white-space:pre;color:#404040;'> and VMs for all 10.5-10.13 versions. This was all done for both the
</span><span style='display:block; white-space:pre;color:#404040;'> normal and -devel ports.
</span>---
net/gpsd/Portfile | 34 +++++--------------
net/gpsd/files/patch-SConstruct.diff | 47 --------------------------
net/gpsd/files/patch-noC99.diff | 19 -----------
net/gpsd/files/patch-pyserial.diff | 64 ------------------------------------
4 files changed, 9 insertions(+), 155 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/gpsd/Portfile b/net/gpsd/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1ed2628..7097c10 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/gpsd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/gpsd/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,25 +28,14 @@ if {${subport} eq ${name}} {
</span> # release
conflicts gpsd-devel
<span style='display:block; white-space:pre;background:#ffe0e0;'>- version 3.18.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- checksums rmd160 08f95b51218f11f7b07c1a5046cead366216fdc8 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 5cb1e6d880ec9a52c62492dd0e3d77451b7c7ad625895bd652f6354215aec23e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 9031595
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 3.19
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 b9f41521519f6887585eb4cafa85a058ad1385b0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 27dd24d45b2ac69baab7933da2bf6ae5fb0be90130f67e753c110a3477155f39 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 10581777
</span> revision 0
master_sites savannah
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # NOTE: The 3.18.1 tarball doesn't quite match the release-3.18.1 sources.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # This due to a recurring problem clobbering the 'gps' symlinks in the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # contrib/ and devtools/. Since this doesn't affect the installed port,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # these errors are left as is. Note, however, that attempts to directly
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # use Python programs in these subdirectories from the work directory
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # may not work.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-SConstruct.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-noC99.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-pyserial.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.type regex
livecheck.url https://download.savannah.gnu.org/releases/gpsd/
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -57,11 +46,11 @@ if {${subport} eq ${name}} {
</span> conflicts gpsd
revision 0
<span style='display:block; white-space:pre;background:#ffe0e0;'>- git.branch 8f0df1041143a18f09ee1be9605fa69fb67155ca
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- version 20190624-[string range ${git.branch} 0 7]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- checksums rmd160 4be40f7c9240dbda3dc7a6ab347be45853e459d6 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 93da40a670eb576fdec2ccd10dccdb62dc3133264d5de79b190a57aa8ea39179 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 8648362
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git.branch c711d531a6faab93df68ec625a076631569a729d
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 20190710-[string range ${git.branch} 0 7]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 ecace6c26edfd3588ac42062debde2f13912087b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 8d37eb6de22af8956afb0182462ac91c1e330ac215cb31b40823e461edad2b2c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 8648104
</span>
master_sites https://gitlab.com/gpsd/gpsd/-/archive/${git.branch}/
distname ${name}-${git.branch}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -209,11 +198,6 @@ post-destroot {
</span> variant qt description {Build Qt4 bindings} {
PortGroup qt4 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # The following three lines are a workaround for #50347
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build.env-append PKG_CONFIG_PATH=${qt_pkg_config_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- test.env-append PKG_CONFIG_PATH=${qt_pkg_config_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.env-append PKG_CONFIG_PATH=${qt_pkg_config_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> build.args-replace qt=no qt=yes
test.args-replace qt=no qt=yes
destroot.args-replace qt=no qt=yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/gpsd/files/patch-SConstruct.diff b/net/gpsd/files/patch-SConstruct.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 05ecfa8..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/gpsd/files/patch-SConstruct.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,47 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- SConstruct.orig 2018-10-19 12:45:40.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ SConstruct 2018-11-18 16:35:17.000000000 -0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1385,6 +1385,7 @@ if not env['python']:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # installed python programs
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- python_progs = ["gegps", "gpscat", "gpsfake", "gpsprof"]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ python_deps = {'gpscat': 'packet'}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # python misc helpers and stuff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- python_misc = [
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1398,6 +1399,7 @@ else:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "test_xgps_deps.py",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "valgrind-audit.py"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ python_deps['test_maidenhead.py'] = 'clienthelpers'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- python_manpages = {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "gegps.1": "gps.xml",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1414,6 +1416,7 @@ else:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "ubxtool.1": "ubxtool.xml",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "zerk.1": "zerk.xml",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- })
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ python_deps['xgps'] = 'clienthelpers'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- except ImportError:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # no pyserial, reduced functionality in ubxtool and zerk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- announce("WARNING: Python module serial (pyserial) not found.\n"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1527,6 +1530,11 @@ else:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- python_compiled_libs[ext] = python_env.SharedLibrary(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ext, python_objects[ext])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # Make sure we know about compiled dependencies
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ for prog, dep in python_deps.items():
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ env.Depends(prog, python_compiled_libs['gps' + os.sep + dep])
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Make PEP 241 Metadata 1.0.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Why not PEP 314 (V1.1) or PEP 345 (V1.2)?
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # V1.2 and V1.2 require a Download-URL to an installable binary
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1891,7 +1899,7 @@ if env['python']:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- verenv['DISPLAY'] = '' # Avoid launching X11 in X11 progs
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pp = []
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- for p in python_progs:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- pp.append("$SRCDIR/%s -V" % p)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ pp.append("$PYTHON $SRCDIR/%s -V" % p)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- python_versions = Utility('python-versions', python_progs, pp, ENV=verenv)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- else:
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/gpsd/files/patch-noC99.diff b/net/gpsd/files/patch-noC99.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 1161651..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/gpsd/files/patch-noC99.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,19 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- driver_ubx.c.orig 2018-10-18 13:59:30.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ driver_ubx.c 2018-11-18 16:35:32.000000000 -0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -813,6 +813,7 @@ static gps_mask_t ubx_rxm_rawx(struct gp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int8_t leapS;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uint8_t numMeas;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uint8_t recStat;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ int i;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (16 > data_len) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- gpsd_log(&session->context->errout, LOG_WARN,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -830,7 +831,7 @@ static gps_mask_t ubx_rxm_rawx(struct gp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "UBX_RXM_RAWX: rcvTow %f week %u leapS %d numMeas %u recStat %d\n",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rcvTow, week, leapS, numMeas, recStat);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- for (int i = 0; i < numMeas; i++) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ for (i = 0; i < numMeas; i++) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- int off = 32 * i;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- double prMes = getled64((const char *)buf, off + 16);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- double cpMes = getled64((const char *)buf, off + 24);
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/gpsd/files/patch-pyserial.diff b/net/gpsd/files/patch-pyserial.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 9117345..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/gpsd/files/patch-pyserial.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,64 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- ubxtool.orig 2018-10-19 12:45:52.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ ubxtool 2018-11-18 16:35:45.000000000 -0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -2068,6 +2068,7 @@ class gps_io(object):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "Initialize class"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Serial = serial_class
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Serial_v3 = Serial.VERSION.split('.')[0] >= '3'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # buffer to hold read data
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- self.out = b''
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -2127,6 +2128,9 @@ class gps_io(object):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # configure the serial connections (the parameters refer to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # the device you are connecting to)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # pyserial Ver 3.0+ changes writeTimeout to write_timeout
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # Using the wrong one causes an error
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ write_timeout_arg = 'write_timeout' if Serial_v3 else 'writeTimeout'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- try:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- self.ser = Serial.Serial(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- baudrate=opts['input_speed'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -2137,10 +2141,7 @@ class gps_io(object):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- stopbits=Serial.STOPBITS_ONE,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # read timeout
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- timeout=0.05,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- # pyserial Ver 3.0+ changes writeTimeout to write_timeout
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- # just set both
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- write_timeout=0.5,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- writeTimeout=0.5,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ **{write_timeout_arg: 0.5}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- except Serial.serialutil.SerialException:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # this exception happens on bad serial port device name
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- zerk.orig 2018-10-19 12:46:11.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ zerk 2018-11-18 16:35:45.000000000 -0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1402,6 +1402,7 @@ class gps_io(object):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "Initialize class"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Serial = serial_class
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ Serial_v3 = Serial.VERSION.split('.')[0] >= '3'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # buffer to hold read data
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- self.out = b''
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1460,6 +1461,9 @@ class gps_io(object):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # configure the serial connections (the parameters refer to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # the device you are connecting to)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # pyserial Ver 3.0+ changes writeTimeout to write_timeout
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # Using the wrong one causes an error
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ write_timeout_arg = 'write_timeout' if Serial_v3 else 'writeTimeout'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- try:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- self.ser = Serial.Serial(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- baudrate=opts['input_speed'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1470,10 +1474,7 @@ class gps_io(object):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- stopbits=Serial.STOPBITS_ONE,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # read timeout
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- timeout=0.05,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- # pyserial Ver 3.0+ changes writeTimeout to write_timeout
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- # just set both
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- write_timeout=0.5,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- writeTimeout=0.5,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ **{write_timeout_arg: 0.5}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- except Serial.serialutil.SerialException:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # this exception happens on bad serial port device name
</span></pre><pre style='margin:0'>
</pre>