[Python-checkins] pymigr: Add docstring to authors.py

antoine.pitrou python-checkins at python.org
Tue Feb 22 23:44:15 CET 2011


antoine.pitrou pushed 246b74f0a32e to pymigr:

http://hg.python.org/pymigr/rev/246b74f0a32e
changeset:   79:246b74f0a32e
tag:         tip
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Feb 22 23:44:11 2011 +0100
summary:
  Add docstring to authors.py

files:
  authors.py

diff --git a/authors.py b/authors.py
old mode 100644
new mode 100755
--- a/authors.py
+++ b/authors.py
@@ -1,3 +1,12 @@
+#!/usr/bin/env python
+"""
+Find the authors not yet in the author-map file.
+First argument must be the filesystem path (not URL!) to the Subversion repo
+(not hg clone!). Example:
+$ ./authors.py ../python-svn
+"""
+
+
 import util, sys
 
 MAP = 'author-map'
@@ -10,7 +19,6 @@
             if 'svn:log' in props and 'cvs2svn' in props['svn:log']:
                 author = 'cvs2svn'
             else:
-                print rev, props
                 continue
         data.add(author)
     return data

--
Repository URL: http://hg.python.org/pymigr


More information about the Python-checkins mailing list