From owner-svn-src-user@FreeBSD.ORG Wed Oct 24 02:32:07 2012 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5CFDF691; Wed, 24 Oct 2012 02:32:07 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4448E8FC0C; Wed, 24 Oct 2012 02:32:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9O2W7QA018183; Wed, 24 Oct 2012 02:32:07 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9O2W7WP018181; Wed, 24 Oct 2012 02:32:07 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201210240232.q9O2W7WP018181@svn.freebsd.org> From: Eitan Adler Date: Wed, 24 Oct 2012 02:32:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r241981 - user/crees/rclint X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 02:32:07 -0000 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