diff MoinMoin/parser/text_rst.py @ 5711:58a9aa0d67bd

Raise exceptions as recommended in PEP 8.
author Pascal Volk <user@localhost.localdomain.org>
date Mon, 05 Jul 2010 23:21:21 +0000
parents 0c424b6dc029
children 97208f67798f
line wrap: on
line diff
--- a/MoinMoin/parser/text_rst.py	Sun Jun 27 12:44:38 2010 +0200
+++ b/MoinMoin/parser/text_rst.py	Mon Jul 05 23:21:21 2010 +0000
@@ -152,7 +152,7 @@
         if current_version < required_version:
             err = 'ERROR: The installed docutils version is %s;' % ('.'.join([str(i) for i in current_version]))
             err += ' version %s or later is required.' % ('.'.join([str(i) for i in required_version]))
-            raise RuntimeError, err
+            raise RuntimeError(err)
 
     def translate(self):
         visitor = MoinTranslator(self.document,