Skip to content
Browse files

Add top-of-file comment

  • Loading branch information...
1 parent 033f8af commit fd525fc3b7f5a1c33b82e2d9d5e6f78f8d5ee9f5 @bdarnell committed
Showing with 14 additions and 4 deletions.
  1. +14 −4 auto2to3.py
View
18 auto2to3.py
@@ -1,8 +1,18 @@
#!/usr/bin/env python3.2
-#
-# Import hook to run 2to3 transparently over imported files.
-# Only works with files that have 'python2' in the first or second line.
-#
+"""Wrapper to run 2to3 automatically at import time.
+
+Usage:
+ auto2to3.py --package=pkg main_module
+
+main_module is run as if by the -m flag to the python interpreter
+(i.e. __name__ == '__main__'). All modules whose name begins with a name
+passed to the --package flag (which may be specified more than once)
+will be run through 2to3. 2to3 output is cached on disk between runs
+for speed.
+
+Based on auto2to3.py by Georg Brandl:
+http://dev.pocoo.org/hg/sandbox/file/tip/auto2to3.py
+"""
import argparse
import os

0 comments on commit fd525fc

Please sign in to comment.
Something went wrong with that request. Please try again.