From fdfb05bb0b49d860eb035d779b0ae56e5ca875ed Mon Sep 17 00:00:00 2001
From: Fred Drake <fdrake@acm.org>
Date: Wed, 18 Apr 2001 03:08:54 +0000
Subject: \versionadded:  Add support for including an explanatory note along
 with     the versioning information, similar to \versionchanged.

---
 Doc/texinputs/python.sty | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 8a61d87..795882d 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -872,8 +872,13 @@
 %  \versionadded{1.5.2}
 %  \versionchanged[short explanation]{2.0}
 %
-\newcommand{\versionadded}[1]{%
-  {  New in version #1.  }}
+\newcommand{\versionadded}[2][\py@badkey]{%
+  \ifx#1\@undefined%
+    {  New in version #2.  }%
+  \else%
+    {  New in version #2:\ #1.  }%
+  \fi%
+}
 \newcommand{\versionchanged}[2][\py@badkey]{%
   \ifx#1\@undefined%
     {  Changed in version #2.  }%
-- 
cgit v0.12

