1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Date: Sat Mar 24 12:10:29 GMT 2012
Author: Thomas Kluyver <thomas@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@niemeyer.net>.
|