Tag:
Branch:
Tree:
962c20f9be
alfa-romeo
all-your-long-are-belong-to-us
bob-test
c2-fw-updates
c2vw-master
cc-curvature
cherokee_kl
chrysler-fw-morganmastiff
chrysler-jgc-fix
chrysler-jgc-uds-fp
controls-smooth-startup
deprecate-no-steer-angle
devel
doc-gen-migration
drive-mode-refactor
e-up-test
e2e-mpc-tweak
enable-pq
extra-cars3
faw-hongqi-hs5
fca-giorgio
fix-no-steering-angle
fix-notebooks
gm-handle-resume
hkg-fw-leycera
hkg-gear-message-notebook
inactive-accel-fix
joyride
lets-get-piffy
macan
master
master-ci
mlb-s4
mqb-accel-override
mqb-accel-override-fix
mqb-alig
mqb-engage-at-standstill
mqb-fpv2-temp
mqb-freewheeling
mqb-fw-andromeda
mqb-fw-baldboi
mqb-fw-rhadeur
mqb-fw-sajjad2
mqb-fw-ziggehh
mqb-hca-update
mqb-long
mqb-long-testing
mqb-long-tuning
mqb-ppcars
mqb-test-pete
mqb-torque
mqbevo-gti
mqbevo-test
mqbevo-upstream
odyssey-test
peanut-butter-jelly-time
pj-view-ci-routes
pq-caddy
pq-fpv2-temp
rivian
secoc-test
slow-your-roll
sr-patch
ssgo
stuff
subaru-puttputt7-fw
support-guidelines
temp-pq
toyota-security-docs
vision-acc-fixes
vw-community-devel
vw-community-devel-la
vw-devel
vw-meb
vw-mlb
vw-mqb-aeb
vw-mqb-eps-timer-cleanup
vw-opp-reset
vw-pq-mlb-opp-reset
vw-rp-test
x-0710-jm
x-andyml
x-archive-community-master-merge
x-archive-release2
x-archive-vw-061
x-archive-vw-063-devel
x-archive-vw-064-devel
x-archive-vw-065-devel
x-archive-vw-065-devel2
x-archive-vw-community-devel
x-archive-vw-community-devel-pq
x-golf3
x-jy-temp
x-jy-temp2
x-jy-temp3
x-la-test
x-lftt
x-params-test
x-params-test2
xavvypls-test
yukon-test
v0.1
v0.2
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.4.0.2
v0.4.1
v0.4.2
v0.4.4
v0.4.5
v0.4.6
v0.4.7
v0.5
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9
${ noResults }
102 Commits (962c20f9be1ed72f345d303394e9eb7f61f356f9)
Author | SHA1 | Message | Date |
---|---|---|---|
|
3ad68e4378 |
getting ready for Python 3 (#619)
* tabs to spaces
python 2 to 3: https://portingguide.readthedocs.io/en/latest/syntax.html#tabs-and-spaces
* use the new except syntax
python 2 to 3: https://portingguide.readthedocs.io/en/latest/exceptions.html#the-new-except-syntax
* make relative imports absolute
python 2 to 3: https://portingguide.readthedocs.io/en/latest/imports.html#absolute-imports
* Queue renamed to queue in python 3
Use the six compatibility library to support both python 2 and 3: https://portingguide.readthedocs.io/en/latest/stdlib-reorg.html#renamed-modules
* replace dict.has_key() with in
python 2 to 3: https://portingguide.readthedocs.io/en/latest/dicts.html#removed-dict-has-key
* make dict views compatible with python 3
python 2 to 3: https://portingguide.readthedocs.io/en/latest/dicts.html#dict-views-and-iterators
Where needed, wrapping things that will be a view in python 3 with a list(). For example, if it's accessed with []
Python 3 has no iter*() methods, so just using the values() instead of itervalues() as long as it's not too performance intensive. Note that any minor performance hit of using a list instead of a view will go away when switching to python 3. If it is intensive, we could use the six version.
* Explicitly use truncating division
python 2 to 3: https://portingguide.readthedocs.io/en/latest/numbers.html#division
python 3 treats / as float division. When we want the result to be an integer, use //
* replace map() with list comprehension where a list result is needed.
In python 3, map() returns an iterator.
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-map-and-filter
* replace filter() with list comprehension
In python 3, filter() returns an interatoooooooooooor.
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-map-and-filter
* wrap zip() in list() where we need the result to be a list
python 2 to 3: https://portingguide.readthedocs.io/en/latest/iterators.html#new-behavior-of-zip
* clean out some lint
Removes these pylint warnings:
************* Module selfdrive.car.chrysler.chryslercan
W: 15, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 16, 0: Unnecessary semicolon (unnecessary-semicolon)
W: 25, 0: Unnecessary semicolon (unnecessary-semicolon)
************* Module common.dbc
W:101, 0: Anomalous backslash in string: '\?'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
************* Module selfdrive.car.gm.interface
R:102, 6: Redefinition of ret.minEnableSpeed type from float to int (redefined-variable-type)
R:103, 6: Redefinition of ret.mass type from int to float (redefined-variable-type)
************* Module selfdrive.updated
R: 20, 6: Redefinition of r type from int to str (redefined-variable-type)
old-commit-hash:
|
6 years ago |
|
30f7a33535 |
openpilot v0.5.10 release
old-commit-hash:
|
6 years ago |