Skip to content

Commit 909017d

Browse files
committed
FIX __func__ attribute under Python 3
1 parent 219e9b9 commit 909017d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

memory_profiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,8 @@ def register_magics(cls, ip):
860860
ip.register_magics(cls)
861861

862862
# Ensuring old interface of magics expose for IPython 0.10
863-
magic_mprun = MemoryProfilerMagics.mprun.__func__
864-
magic_memit = MemoryProfilerMagics.memit.__func__
863+
magic_mprun = MemoryProfilerMagics().mprun.__func__
864+
magic_memit = MemoryProfilerMagics().memit.__func__
865865

866866

867867
def load_ipython_extension(ip):

0 commit comments

Comments
 (0)