Commits

Jonathan Eunice  committed 93155c5

corrected bug in watch() method

  • Participants
  • Parent commits ccbeca7

Comments (0)

Files changed (1)

File show/core.py

         Main entry point for Show objects.
         """
         opts = self.options.push(kwargs)
-        caller = inspect.currentframe().f_back
+        caller = inspect.currentframeentframe().f_back
         formatter = self.arg_format if not opts.props else self.arg_format_props
         return self._showcore(args, kwargs, caller, formatter, opts)
         
         """
         Show all local vars, plus any other values mentioned.
         """
-        opts = self.options.push(kwargs)
+        opts = self.opts = self.options.push(kwargs)
         caller = inspect.currentframe().f_back
         assert not args # for now
         locdict = caller.f_locals
         """
         Show the local variables, then again only when changed.
         """
-        opts = self.options.push(kwargs)
+        opts = self.opts = self.options.push(kwargs)
         caller = inspect.currentframe().f_back
         
         f_locals = caller.f_locals
             
         return echo_func
     
-    def prettyprint(self, mode='ansi', indent=4, width=120, depth=5, style='default'):
+    def prettyprint(self, mode='ansi', sep='\n', indent=4, width=120, depth=5, style='default'):
         """
         Convenience method to turn on pretty-printing. Mode can be text or ansi.
         """
+        self.set(sep=sep)
         mode = mode.lower()
         from pprint import pformat
         pf = lambda x: pformat(x, indent=indent, width=width, depth=depth)