[Python-checkins] cpython (merge 3.2 -> default): Allow redemo.py to be used from the command line like other demos.

ned.deily python-checkins at python.org
Sat Aug 18 21:25:43 CEST 2012


http://hg.python.org/cpython/rev/d693f961c5ff
changeset:   78647:d693f961c5ff
parent:      78644:01717c3da4fb
parent:      78646:a225a27b0860
user:        Ned Deily <nad at acm.org>
date:        Sat Aug 18 12:24:56 2012 -0700
summary:
  Allow redemo.py to be used from the command line like other demos.

files:
  Tools/demo/redemo.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Tools/demo/redemo.py b/Tools/demo/redemo.py
old mode 100644
new mode 100755
--- a/Tools/demo/redemo.py
+++ b/Tools/demo/redemo.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
 """Basic regular expression demostration facility (Perl style syntax)."""
 
 from tkinter import *

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


More information about the Python-checkins mailing list