From 4ce8ee31ad10c60382c4b66b8f337e9f3a58c571 Mon Sep 17 00:00:00 2001 From: hellerve Date: Fri, 7 Aug 2015 20:36:45 +0200 Subject: [PATCH] modified pythonrc to make python version clear --- pythonrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pythonrc b/pythonrc index 4c8d12b..c52c9a1 100644 --- a/pythonrc +++ b/pythonrc @@ -15,4 +15,12 @@ def write_history(readline=readline, histfile=histfile): pass atexit.register(write_history) + +if sys.version_info.major == 3: + sys.ps1 = "3>>> " + sys.ps2 = "3... " +else: + sys.ps1 = "2>>> " + sys.ps2 = "2... " + del readline, histfile, atexit, write_history, sys, os