Package: python-sympy Version: 0.6.7-1.1 Severity: normal User: debian-...@lists.debian.org Usertags: kfreebsd Tags: patch
$ ls -l NUL ls: cannot access NUL: No such file or directory$ python sympy-NUL.py $ ls -l NUL
-rw-r--r-- 1 jwilk jwilk 1666 Aug 11 00:22 NUL The attached patch fixes this bug. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: kfreebsd-i386 (i686) Kernel: kFreeBSD 7.3-1-686 Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-sympy depends on: ii python 2.6.5-12 interactive high-level object-orie ii python-support 1.0.9 automated rebuilding support for P Versions of packages python-sympy recommends: pn ipython <none> (no description available) ii python [python-ctypes] 2.6.5-12 interactive high-level object-orie pn python-imaging <none> (no description available) -- Jakub Wilk
import sympy.galgebra.latex_ex as tex tex.Format() print 'eggs' tex.xdvi()
--- sympy-0.6.7.orig/sympy/galgebra/latex_ex.py +++ sympy-0.6.7/sympy/galgebra/latex_ex.py @@ -1155,10 +1155,7 @@ if debug: #Display latex excution output for debugging purposes os.system(latex_str+' '+filename[:-4]) else: #Works for Linux don't know about Windows - if sys.platform == 'linux2': - os.system(latex_str+' '+filename[:-4]+' > /dev/null') - else: - os.system(latex_str+' '+filename[:-4]+' > NUL') + os.system(latex_str+' '+filename[:-4]+' > '+os.devnull) os.system(xdvi_str+' '+filename[:-4]+' &') LatexPrinter.LaTeX_flg = False return
signature.asc
Description: Digital signature