From: W. Trevor King Date: Thu, 16 Feb 2012 14:11:01 +0000 (-0500) Subject: Oops, `ConfigParser(interpolation=None)` belongs to Python 3. X-Git-Tag: v0.3~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=017c779431da02713a96891e809fe60de4ee39d7;p=update-copyright.git Oops, `ConfigParser(interpolation=None)` belongs to Python 3. --- diff --git a/README b/README index 06e2f89..674e039 100644 --- a/README +++ b/README @@ -47,7 +47,7 @@ You'll need a project that you version with one of our supported VCSs (currently Git, Mercurial, and Bazaar, but it should be pretty easy to add backends for other systems). You'll also need a config file called ``.update-copyright.conf`` in your package root, which will be -parsed using Python's ConfigParser_ (`syntax documentation`_, +parsed using Python's RawConfigParser_ (`syntax documentation`_, interpolation is turned off). Your config file will look something like:: @@ -140,8 +140,8 @@ wking@drexel.edu .. _wtk overlay: http://blog.tremily.us/posts/Gentoo_overlay .. _Git: http://git-scm.com/ .. _homepage: http://blog.tremily.us/posts/update-copyright/ -.. _ConfigParser: - http://docs.python.org/dev/library/configparser.html#configparser.ConfigParser +.. _RawConfigParser: + http://docs.python.org/dev/library/configparser.html#configparser.RawConfigParser .. _syntax documentation: http://docs.python.org/dev/library/configparser.html#supported-ini-file-structure .. _GNU General Public License Version 3: http://www.gnu.org/licenses/gpl.html diff --git a/update_copyright/project.py b/update_copyright/project.py index 912623e..18280b1 100644 --- a/update_copyright/project.py +++ b/update_copyright/project.py @@ -89,7 +89,7 @@ class Project (object): self._copyright_tag = '-xyz-COPY' + '-RIGHT-zyx-' def load_config(self, stream): - p = _configparser.ConfigParser(interpolation=None) + p = _configparser.RawConfigParser() p.readfp(stream) try: self._name = p.get('project', 'name')