[Python-modules-commits] r20918 - in packages/python3-dateutil/trunk/debian/patches (2 files)

takluyver-guest at users.alioth.debian.org takluyver-guest at users.alioth.debian.org
Sat Mar 24 12:12:37 UTC 2012


    Date: Saturday, March 24, 2012 @ 12:12:35
  Author: takluyver-guest
Revision: 20918

Patch README to update examples.

Added:
  packages/python3-dateutil/trunk/debian/patches/update-readme.patch
Modified:
  packages/python3-dateutil/trunk/debian/patches/series

Modified: packages/python3-dateutil/trunk/debian/patches/series
===================================================================
--- packages/python3-dateutil/trunk/debian/patches/series	2012-03-24 11:54:00 UTC (rev 20917)
+++ packages/python3-dateutil/trunk/debian/patches/series	2012-03-24 12:12:35 UTC (rev 20918)
@@ -1 +1,2 @@
 Use-C-locale-when-calling-date.patch
+update-readme.patch

Added: packages/python3-dateutil/trunk/debian/patches/update-readme.patch
===================================================================
--- packages/python3-dateutil/trunk/debian/patches/update-readme.patch	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/patches/update-readme.patch	2012-03-24 12:12:35 UTC (rev 20918)
@@ -0,0 +1,40 @@
+Date: Sat Mar 24 12:10:29 GMT 2012
+Author: Thomas Kluyver <thomas at kluyver.me.uk>
+Subject: Update README for Python 3
+
+Will forward upstream
+--- a/README
++++ b/README
+@@ -52,16 +52,16 @@
+ from dateutil.rrule import *
+ from dateutil.parser import *
+ from datetime import *
+-import commands
++import subprocess
+ import os
+-now = parse(commands.getoutput("date"))
++now = parse(subprocess.getoutput("date"))
+ today = now.date()
+ year = rrule(YEARLY,bymonth=8,bymonthday=13,byweekday=FR)[0].year
+ rdelta = relativedelta(easter(year), today)
+-print "Today is:", today
+-print "Year with next Aug 13th on a Friday is:", year
+-print "How far is the Easter of that year:", rdelta
+-print "And the Easter of that year is:", today+rdelta
++print("Today is:", today)
++print("Year with next Aug 13th on a Friday is:", year)
++print("How far is the Easter of that year:", rdelta)
++print("And the Easter of that year is:", today+rdelta)
+ }}}
+ 
+ And here's the output:
+@@ -76,8 +76,7 @@
+ 
+ == Download ==
+ The following files are available.
+-  * attachment:python-dateutil-1.0.tar.bz2
+-  * attachment:python-dateutil-1.0-1.noarch.rpm
++  * http://labix.org/download/python-dateutil/python-dateutil-2.0.tar.gz
+ 
+ == Author ==
+ The dateutil module was written by GustavoNiemeyer <gustavo at niemeyer.net>.




More information about the Python-modules-commits mailing list