[merge] follow up, fix the rest of the mac tests
Martin Pool
mbp at canonical.com
Wed Jul 5 04:59:13 BST 2006
On 4 Jul 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
> I added this to HACKING:
>
> OS Abstractions
> ===============
>
> There are several functions in osutils.py which provide an abstraction
> layer above the python builtin ``os`` functions. In general, the ``os``
> module is designed as a way to abstract performing a given operation,
> but doing so in native paths. Because bzr records paths, it needs a way
> to change natives paths to be consistent across platforms. Specifically,
> on win32, we need to change backwards slashes to forward slashes, and on
> Mac OSX we need to change the unicode normalization of files. Because of
> this, it is generally better to call the ``osutils`` function instead of
> the ``os`` function. Care is taken such that the returned paths can
> still be accessed by standard functions, but the paths themselves will
> be more consistent across platforms.
That looks great.
--
Martin
More information about the bazaar
mailing list