[Python-modules-commits] r4865 - in packages/python-docutils/trunk/debian (2 files)
smcv-guest at users.alioth.debian.org
smcv-guest at users.alioth.debian.org
Thu Mar 20 20:57:51 UTC 2008
Date: Thursday, March 20, 2008 @ 20:57:50
Author: smcv-guest
Revision: 4865
Remove unpep263.py, no longer needed
Modified:
packages/python-docutils/trunk/debian/changelog
Deleted:
packages/python-docutils/trunk/debian/unpep263.py
Modified: packages/python-docutils/trunk/debian/changelog
===================================================================
--- packages/python-docutils/trunk/debian/changelog 2008-03-20 20:53:10 UTC (rev 4864)
+++ packages/python-docutils/trunk/debian/changelog 2008-03-20 20:57:50 UTC (rev 4865)
@@ -8,6 +8,8 @@
* Apply patch from Ubuntu to fix build with current python-central
(closes: #470697)
* Simplify and re-indent debian/rules for better clarity
+ * Stop working around #379709, because it was caused by #380360 which has
+ been closed
* Remove man page during clean
* Keep lintian happy: relax setuptools dependency from 0.6b3-1 to 0.6b3,
remove override for build-depends-without-arch-dep python-setuptools (bug
Deleted: packages/python-docutils/trunk/debian/unpep263.py
===================================================================
--- packages/python-docutils/trunk/debian/unpep263.py 2008-03-20 20:53:10 UTC (rev 4864)
+++ packages/python-docutils/trunk/debian/unpep263.py 2008-03-20 20:57:50 UTC (rev 4865)
@@ -1,42 +0,0 @@
-#!/usr/bin/python
-
-# Convert PEP-0263 source code to ASCII, for compatibility with python-minimal
-# (which does not have the necessary encodings machinery).
-# Usage: python unpep263.py < orig.py > ascii.py
-# Caveats: assumes that the file is at least 2 lines long and that there
-# is no other useful information on the -*- coding -*- line
-
-# Copyright (c) 2007 Simon McVittie <http://smcv.pseudorandom.co.uk/>
-#
-# Copying and distribution of this file, with or without modification,
-# are permitted in any medium without royalty provided the copyright
-# notice and this notice are preserved.
-
-import re
-import sys
-
-CODING = re.compile(r'^\s*#.*coding[:=]\s*([-\w.]+)')
-
-line = sys.stdin.readline()
-
-match = CODING.match(line)
-if match is None:
- sys.stdout.write(line)
- line = sys.stdin.readline()
- match = CODING.match(line)
-
-if match is None:
- sys.stdout.write(line)
- for line in sys.stdin:
- sys.stdout.write(line)
- sys.exit(0)
-
-encoding = match.group(1)
-
-for line in sys.stdin:
- u = line.decode(encoding)
- for char in u:
- if char <= u'\x7f':
- sys.stdout.write(char.encode('ascii'))
- else:
- sys.stdout.write(char.encode('raw_unicode_escape'))
More information about the Python-modules-commits
mailing list