changeset 585:1e3b778be7e4

STUB: .emacs
author Jeff Hammel <k0scist@gmail.com>
date Thu, 23 Jan 2014 11:27:02 -0800
parents ed99a36df540
children e14ba4fbc0e7
files .emacs
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.emacs	Wed Jan 22 20:17:12 2014 -0800
+++ b/.emacs	Thu Jan 23 11:27:02 2014 -0800
@@ -153,8 +153,9 @@
 (fset 'pytodo "raise NotImplementedError('TODO') # -> record TODO items")
 
 (fset 'python-file "#!/usr/bin/env python
+# -*- coding: utf-8 -*-
 
-import optparse
+import argpase
 import os
 import sys
 
@@ -163,7 +164,7 @@
 def main(args=sys.argv[1:]):
 
     usage = '%prog [options]'
-    parser = optparse.OptionParser(usage=usage, description=__doc__)
+    parser = argparse.ArgumentParser(usage=usage, description=__doc__)
     options, args = parser.parse_args(args)
 
 if __name__ == '__main__':