Commit 2394cfef authored by Jason R. Coombs's avatar Jason R. Coombs

Reorganize imports and remove excess whitespace

parent 74c3cea6
import distutils, os import os
from setuptools import Command from setuptools import Command
from setuptools.compat import basestring from setuptools.compat import basestring
from distutils.util import convert_path from distutils.util import convert_path
from distutils import log from distutils import log
from distutils.errors import * from distutils.errors import DistutilsOptionError
class rotate(Command): class rotate(Command):
"""Delete older distributions""" """Delete older distributions"""
...@@ -29,7 +29,7 @@ class rotate(Command): ...@@ -29,7 +29,7 @@ class rotate(Command):
"(e.g. '.zip' or '.egg')" "(e.g. '.zip' or '.egg')"
) )
if self.keep is None: if self.keep is None:
raise DistutilsOptionError("Must specify number of files to keep") raise DistutilsOptionError("Must specify number of files to keep")
try: try:
self.keep = int(self.keep) self.keep = int(self.keep)
except ValueError: except ValueError:
...@@ -56,28 +56,3 @@ class rotate(Command): ...@@ -56,28 +56,3 @@ class rotate(Command):
log.info("Deleting %s", f) log.info("Deleting %s", f)
if not self.dry_run: if not self.dry_run:
os.unlink(f) os.unlink(f)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment