diff --git a/xerox/darwin.py b/xerox/darwin.py
index <HASH>..<HASH> 100644
--- a/xerox/darwin.py
+++ b/xerox/darwin.py
@@ -14,7 +14,7 @@ def copy(string):
     """Copy given string into system clipboard."""
     try:
         subprocess.Popen(['pbcopy'], stdin=subprocess.PIPE).communicate(str(unicode(string)))
-    except Exception, why:
+    except Exception as why:
         raise XcodeNotFound
     
     return
@@ -24,6 +24,6 @@ def paste():
     """Returns system clipboard contents."""
     try:
         return unicode(commands.getoutput('pbpaste'))
-    except Exception, why:
+    except Exception as why:
         raise XcodeNotFound
     
diff --git a/xerox/linux.py b/xerox/linux.py
index <HASH>..<HASH> 100644
--- a/xerox/linux.py
+++ b/xerox/linux.py
@@ -13,13 +13,13 @@ def copy(string):
         _cmd = ["xclip", "-selection", "clipboard"]
         subprocess.Popen(_cmd, stdin=subprocess.PIPE).communicate(unicode(string))
         return
-    except Exception, why:
+    except Exception as why:
         raise XclipNotFound
     
 def paste():
     """Returns system clipboard contents."""
     try:
         return unicode(subprocess.Popen(["xclip", "-selection", "clipboard", "-o"], stdout=subprocess.PIPE).communicate()[0])
-    except Exception, why:
+    except Exception as why:
         raise XclipNotFound
Use `except Exception as why` syntax rather than `except Exception, why`