diff options
author | Greg Troxel <gdt@ir.bbn.com> | 2015-01-25 20:17:31 -0500 |
---|---|---|
committer | Greg Troxel <gdt@ir.bbn.com> | 2015-01-25 20:19:26 -0500 |
commit | 2b40e8145c2264df1febe9ee68ca0c5f60a4b8f1 (patch) | |
tree | ff631a1dd63c1fcf471763c7642bfd5eb70c07b0 /gpsfake | |
parent | 34b2cd737dbd9c5febfc8214e703bda7a88abf2d (diff) | |
download | gpsd-2b40e8145c2264df1febe9ee68ca0c5f60a4b8f1.tar.gz |
Print sys.platform and platform.platform().
They are different! This code printed one, and the if statement in
gps/fake.py used the other.
Diffstat (limited to 'gpsfake')
-rwxr-xr-x | gpsfake | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -153,7 +153,7 @@ if __name__ == '__main__': elif (switch == '-t'): tcp = True elif (switch == '-T'): - sys.stdout.write("%s: WRITE_PAD = %.f CLOSE_DELAY = %.2f\n" % (platform.platform(), gpsfake.WRITE_PAD, gpsfake.CLOSE_DELAY)) + sys.stdout.write("sys %s platform %s: WRITE_PAD = %.f CLOSE_DELAY = %.2f\n" % (sys.platform, platform.platform(), gpsfake.WRITE_PAD, gpsfake.CLOSE_DELAY)) raise SystemExit,0 elif (switch == '-u'): udp = True |