I agree that it is not desirable, but that is the standard IPython behavior:
$ ipython [...] In [1]: import warnings In [2]: warnings.warn('foo') /usr/bin/ipython:1: UserWarning: foo #!/usr/bin/python On Monday, November 17, 2014 11:45:53 AM UTC, Jori Mantysalo wrote: > > Matrix(RR, [[1,2],[3,4]]).eigenvalues() gives warning message "Using > generic algorithm for an inexact ring - -", which is of course correct. > After that it prints "#!/usr/bin/env python". > > But on one occasion I already get "# -*- coding: utf-8 -*-" aftew warning > on version 6.4. > > Is this reproducible everywhere, or does it depend on OS / charset / > something? > > -- > Jori Mäntysalo > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.