# HG changeset patch # User Ben Croston # Date 1430131087 -3600 # Node ID 7c132e01c281d9063d81e259603cd1b75c58f6fb # Parent 20f6df6d3f428aefcb06a933bc884ed796c946be Add -oraw to lpr command diff -r 20f6df6d3f42 -r 7c132e01c281 LICENCE --- a/LICENCE Sat Nov 16 17:17:15 2013 +0000 +++ b/LICENCE Mon Apr 27 11:38:07 2015 +0100 @@ -1,4 +1,4 @@ -Copyright (c) 2011-2013 Ben Croston +Copyright (c) 2011-2015 Ben Croston Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff -r 20f6df6d3f42 -r 7c132e01c281 README --- a/README Sat Nov 16 17:17:15 2013 +0000 +++ b/README Mon Apr 27 11:38:07 2015 +0100 @@ -1,5 +1,5 @@ ============ -Zebra-0.0.4a +Zebra-0.0.5 ============ Usage: diff -r 20f6df6d3f42 -r 7c132e01c281 setup.py --- a/setup.py Sat Nov 16 17:17:15 2013 +0000 +++ b/setup.py Mon Apr 27 11:38:07 2015 +0100 @@ -7,7 +7,7 @@ except ImportError: from distutils.command.build_py import build_py -classifiers = ['Development Status :: 3 - Alpha', +classifiers = ['Development Status :: 5 - Production/Stable', 'Operating System :: Microsoft :: Windows', 'Operating System :: Unix', "Operating System :: MacOS :: MacOS X", @@ -25,7 +25,7 @@ install_requires = None setup(name = 'zebra', - version = '0.0.4a', + version = '0.0.5', py_modules = ['zebra'], author = 'Ben Croston', author_email = 'ben@croston.org', @@ -40,4 +40,3 @@ cmdclass = {'build_py': build_py}, install_requires = install_requires ) - diff -r 20f6df6d3f42 -r 7c132e01c281 zebra.py --- a/zebra.py Sat Nov 16 17:17:15 2013 +0000 +++ b/zebra.py Mon Apr 27 11:38:07 2015 +0100 @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright (c) 2011-2013 Ben Croston +# Copyright (c) 2011-2015 Ben Croston # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in @@ -41,7 +41,7 @@ if self.queue == 'zebra_python_unittest': p = subprocess.Popen(['cat','-'], stdin=subprocess.PIPE) else: - p = subprocess.Popen(['lpr','-P%s'%self.queue], stdin=subprocess.PIPE) + p = subprocess.Popen(['lpr','-P{}'.format(self.queue),'-oraw'], stdin=subprocess.PIPE) p.communicate(commands) p.stdin.close()