Mercurial > hg > config
comparison .emacs @ 621:cd51786972c4
STUB: .emacs
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Wed, 05 Feb 2014 09:06:05 -0800 |
parents | ab9145ded910 |
children | e92bd004b906 |
comparison
equal
deleted
inserted
replaced
620:a43d0205f80b | 621:cd51786972c4 |
---|---|
155 (fset 'python-file "#!/usr/bin/env python | 155 (fset 'python-file "#!/usr/bin/env python |
156 # -*- coding: utf-8 -*- | 156 # -*- coding: utf-8 -*- |
157 | 157 |
158 import argparse | 158 import argparse |
159 import os | 159 import os |
160 import subprocess | |
160 import sys | 161 import sys |
161 | 162 |
162 here = os.path.dirname(os.path.realpath(__file__)) | 163 here = os.path.dirname(os.path.realpath(__file__)) |
163 | 164 |
164 def main(args=sys.argv[1:]): | 165 def main(args=sys.argv[1:]): |
165 | 166 |
166 usage = '%prog [options]' | |
167 parser = argparse.ArgumentParser(usage=usage, description=__doc__) | 167 parser = argparse.ArgumentParser(usage=usage, description=__doc__) |
168 parser.add_option('input', nargs='?', | 168 parser.add_option('input', nargs='?', |
169 type=argparse.FileType('r'), default=sys.stdin, | 169 type=argparse.FileType('r'), default=sys.stdin, |
170 help='input file, or read from stdin if ommitted') | 170 help='input file, or read from stdin if ommitted') |
171 options = parser.parse_args(args) | 171 options = parser.parse_args(args) |
198 import os | 198 import os |
199 import unittest | 199 import unittest |
200 | 200 |
201 here = os.path.dirname(os.path.abspath(__file__)) | 201 here = os.path.dirname(os.path.abspath(__file__)) |
202 | 202 |
203 class Test__(unittest.TestCase): | 203 class Test(unittest.TestCase): |
204 def test__(self): | 204 def test_(self): |
205 pass | 205 pass |
206 | 206 |
207 if __name__ == '__main__': | 207 if __name__ == '__main__': |
208 unittest.main() | 208 unittest.main() |
209 ") | 209 ") |