Created
December 10, 2019 06:50
-
-
Save jugmac00/47422171f8755bbc619530db0b156d21 to your computer and use it in GitHub Desktop.
refactor inline bug 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Index: | |
def do(self): | |
self._do_stuff() | |
def _do_stuff(self): | |
if "the_moon_shines": | |
pass | |
####################################### | |
class Catalog: | |
pass | |
# now try to inline _do_stuff | |
# result | |
class Index: | |
def do(self): | |
if "the_moon_shines": | |
pass | |
####################################### | |
class Catalog: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment