Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2012 02:32:07 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r241981 - user/crees/rclint
Message-ID:  <201210240232.q9O2W7WP018181@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Wed Oct 24 02:32:06 2012
New Revision: 241981
URL: http://svn.freebsd.org/changeset/base/241981

Log:
  Make this work with python 3

Modified:
  user/crees/rclint/rclint.py

Modified: user/crees/rclint/rclint.py
==============================================================================
--- user/crees/rclint/rclint.py	Wed Oct 24 02:21:39 2012	(r241980)
+++ user/crees/rclint/rclint.py	Wed Oct 24 02:32:06 2012	(r241981)
@@ -70,9 +70,9 @@ class Db:
             if level == 'warn':
                 logging.warn('[%d]: %s ' % (num+1, err))
             if verbosity > 0:
-                print(textwrap.fill(self.explanation(key),
+                print((textwrap.fill(self.explanation(key),
                                     initial_indent='==> ',
-                                    subsequent_indent='    '))
+                                    subsequent_indent='    ')))
         else:
             logging.error('No such error: %s' % key)
         self.count += 1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210240232.q9O2W7WP018181>