# HG changeset patch # User catherine.devlin@gmail.com # Date 1214574638 14400 # Node ID f844b6c78192cc356a16aae423ac3f92369c4d5d # Parent 698710e88d1beff0fcbe3fe6ea16671974dfdf76 fixing (hopefully) broken pipe error for headless systems diff -r 698710e88d1b -r f844b6c78192 cmd2.py --- a/cmd2.py Mon Jun 09 12:09:10 2008 -0400 +++ b/cmd2.py Fri Jun 27 09:50:38 2008 -0400 @@ -109,7 +109,7 @@ xclipproc = subprocess.Popen('xclip -o -sel clip', shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE) if xclipproc.stdout.read() == teststring: can_clip = True - except (subprocess.CalledProcessError, OSError): + except (subprocess.CalledProcessError, OSError, IOError): pass if can_clip: def getPasteBuffer(): diff -r 698710e88d1b -r f844b6c78192 setup.py --- a/setup.py Mon Jun 09 12:09:10 2008 -0400 +++ b/setup.py Fri Jun 27 09:50:38 2008 -0400 @@ -3,7 +3,7 @@ setup( name="cmd2", - version="0.3.4", + version="0.3.4.1", py_modules = ['cmd2','flagReader','bootstrap'], # metadata for upload to PyPI