]> granicus.if.org Git - python/commit
Swap 'if' branches so content matches to condition in importlib example (GH-14947)
authorTzu-ping Chung <uranusjr@gmail.com>
Thu, 25 Jul 2019 17:20:33 +0000 (01:20 +0800)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Jul 2019 17:20:33 +0000 (10:20 -0700)
commit544fa15ea1b7b73068319bdb217b684e2fd7bacc
tree1674fadbbe05e7a3af06e7b79c0127b4c0d749ef
parent898318b53d921298d1f1fcfa0f415844afbeb318
Swap 'if' branches so content matches to condition in importlib example (GH-14947)

Prior to this change the guard on an 'elif' used an assignment expression whose value was used in a later 'else' block, causing some confusion for people.

(Discussion on Twitter: https://twitter.com/brettsky/status/1153861041068994566.)

Automerge-Triggered-By: @brettcannon
Doc/library/importlib.rst