From 573c2c86d4d4f506a87a1fc16060f32c1386ad38 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 30 Apr 2014 17:38:29 -0400 Subject: Correct indentation and clarify meaning by using namespacing --HG-- extra : amend_source : 20ab7547c8478eb084767fe701e627bdd462ba16 --- setuptools/command/bdist_rpm.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'setuptools/command/bdist_rpm.py') diff --git a/setuptools/command/bdist_rpm.py b/setuptools/command/bdist_rpm.py index c13732fa..99386824 100755 --- a/setuptools/command/bdist_rpm.py +++ b/setuptools/command/bdist_rpm.py @@ -1,6 +1,6 @@ -from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm +import distutils.command.bdist_rpm as orig -class bdist_rpm(_bdist_rpm): +class bdist_rpm(orig.bdist_rpm): """ Override the default bdist_rpm behavior to do the following: @@ -15,12 +15,12 @@ class bdist_rpm(_bdist_rpm): # ensure distro name is up-to-date self.run_command('egg_info') - _bdist_rpm.run(self) + orig.bdist_rpm.run(self) def _make_spec_file(self): version = self.distribution.get_version() rpmversion = version.replace('-','_') - spec = _bdist_rpm._make_spec_file(self) + spec = orig.bdist_rpm._make_spec_file(self) line23 = '%define version ' + version line24 = '%define version ' + rpmversion spec = [ -- cgit v1.2.1