2to3 --fix=raise
diff --git a/Lib/fontTools/cffLib.py b/Lib/fontTools/cffLib.py
index d754456..130249e 100644
--- a/Lib/fontTools/cffLib.py
+++ b/Lib/fontTools/cffLib.py
@@ -51,7 +51,7 @@
 		try:
 			index = self.fontNames.index(name)
 		except ValueError:
-			raise KeyError, name
+			raise KeyError(name)
 		return self.topDictIndex[index]
 	
 	def compile(self, file, otFont):
@@ -959,7 +959,7 @@
 			format = readCard8(file)
 			haveSupplement = format & 0x80
 			if haveSupplement:
-				raise NotImplementedError, "Encoding supplements are not yet supported"
+				raise NotImplementedError("Encoding supplements are not yet supported")
 			format = format & 0x7f
 			if format == 0:
 				encoding = parseEncoding0(parent.charset, file, haveSupplement,
@@ -1485,7 +1485,7 @@
 		if value is None:
 			value = self.defaults.get(name)
 		if value is None:
-			raise AttributeError, name
+			raise AttributeError(name)
 		conv = self.converters[name]
 		value = conv.read(self, value)
 		setattr(self, name, value)