[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r24590 - trunk/tools/server-side

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-04-23 21:25:14 CEST

On Mon, 23 Apr 2007, Blair Zajac wrote:

> Daniel Rall wrote:
> >On Sat, 21 Apr 2007, masaru tsuchiyama wrote:
...
> >>fsfs-reshard.py contains $LastChangedDate tag.
> >>In Non-ASCII environment, it is expanded to Non-ASCII charactors.
> >>So the script must have an encoding description.
...
> >>Index: tools/server-side/fsfs-reshard.py
> >>===================================================================
> >>--- tools/server-side/fsfs-reshard.py (revision 24693)
> >>+++ tools/server-side/fsfs-reshard.py (working copy)
> >>@@ -1,4 +1,5 @@
> >>#!/usr/bin/env python
> >>+# -*- coding: utf-8 -*-
> >>#
> >># fsfs-reshard.py REPOS_PATH MAX_FILES_PER_SHARD
> >>#
> >
> >Thanks Masaru, commited to trunk in r24721.
...
> So Python reads coding lines that aren't on the first line of a script?
> Any URLs for other stuff it reads?

PEP 263 <http://www.python.org/dev/peps/pep-0263/> describes how to
declare a file's encoding to Python.

I don't know of any off-hand, but there are probably other PEPs for
similar information.

- Dan

  • application/pgp-signature attachment: stored
Received on Mon Apr 23 21:27:52 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.