##// END OF EJS Templates
Update formatters.py...
Peter Corke -
Show More
@@ -678,6 +678,8 b' class PlainTextFormatter(BaseFormatter):'
678 def _type_printers_default(self):
678 def _type_printers_default(self):
679 d = pretty._type_pprinters.copy()
679 d = pretty._type_pprinters.copy()
680 d[float] = lambda obj,p,cycle: p.text(self.float_format%obj)
680 d[float] = lambda obj,p,cycle: p.text(self.float_format%obj)
681 if 'numpy' in sys.modules:
682 d[numpy.float64] = lambda obj,p,cycle: p.text(self.float_format%obj)
681 return d
683 return d
682
684
683 @default('deferred_printers')
685 @default('deferred_printers')
General Comments 0
You need to be logged in to leave comments. Login now