Browse files

Add top-of-file comment

  • Loading branch information...
bdarnell committed Feb 24, 2011
1 parent 033f8af commit fd525fc3b7f5a1c33b82e2d9d5e6f78f8d5ee9f5
Showing with 14 additions and 4 deletions.
  1. +14 −4
@@ -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.
+ --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 by Georg Brandl:
import argparse
import os

0 comments on commit fd525fc

Please sign in to comment.