Skip to content

Instantly share code, notes, and snippets.

@jugmac00
Created December 10, 2019 06:50
Show Gist options
  • Save jugmac00/47422171f8755bbc619530db0b156d21 to your computer and use it in GitHub Desktop.
Save jugmac00/47422171f8755bbc619530db0b156d21 to your computer and use it in GitHub Desktop.
refactor inline bug 2
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