changeset 56:f844b6c78192 0.3.4.1

fixing (hopefully) broken pipe error for headless systems
author catherine.devlin@gmail.com
date Fri, 27 Jun 2008 09:50:38 -0400
parents 698710e88d1b
children 86bb50447e99
files cmd2.py setup.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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():
--- 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