File: Use-C-locale-when-calling-date.patch

package info (click to toggle)
python3-dateutil 2.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 980 kB
  • sloc: python: 6,430; makefile: 56
file content (16 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Date: Fri, 23 Mar 2012 23:56:00 +0000
Subject: Use C locale when calling date.

Copied from python-dateutil package (Python 2 equivalent)
Forwarded: no
--- a/example.py
+++ b/example.py
@@ -5,7 +5,7 @@
 from datetime import *
 import subprocess
 import os
-now = parse(subprocess.getoutput("date"))
+now = parse(subprocess.getoutput("LC_ALL=C date"))
 today = now.date()
 year = rrule(YEARLY, bymonth=8, bymonthday=13, byweekday=FR)[0].year
 rdelta = relativedelta(easter(year), today)