diff Lib/packaging/create.py @ 70671:b0e11220a6bf

Improve a few docstrings in packaging. Also beautify import lists. Having them grouped by lenght makes it slightly easier to look for a module.
author Éric Araujo <merwok@netwok.org>
date Sat, 04 Jun 2011 22:24:59 +0200
parents 3854d17ab407
children 50b9fc2451f0
line wrap: on
line diff
--- a/Lib/packaging/create.py	Sat Jun 04 21:16:42 2011 +0200
+++ b/Lib/packaging/create.py	Sat Jun 04 22:24:59 2011 +0200
@@ -1,15 +1,8 @@
-#!/usr/bin/env python
 """Interactive helper used to create a setup.cfg file.
 
 This script will generate a packaging configuration file by looking at
 the current directory and asking the user questions.  It is intended to
-be called as
-
-  pysetup create
-
-or
-
-  python3.3 -m packaging.create
+be called as *pysetup create*.
 """
 
 #  Original code by Sean Reifschneider <jafo@tummy.com>
@@ -26,17 +19,17 @@
 #  Detect scripts (not sure how.  #! outside of package?)
 
 import os
+import re
 import imp
 import sys
 import glob
-import re
 import shutil
 import sysconfig
 import tokenize
-from configparser import RawConfigParser
+from hashlib import md5
 from textwrap import dedent
-from hashlib import md5
 from functools import cmp_to_key
+from configparser import RawConfigParser
 # importing this with an underscore as it should be replaced by the
 # dict form or another structures for all purposes
 from packaging._trove import all_classifiers as _CLASSIFIERS_LIST
@@ -230,7 +223,7 @@
         self._write_cfg()
 
     def has_setup_py(self):
-        """Test for the existance of a setup.py file."""
+        """Test for the existence of a setup.py file."""
         return os.path.exists('setup.py')
 
     def define_cfg_values(self):