Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.py @ 292:09364bcebdf0
Make most file opening binary
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Make most file opening binary
This should make Windows happier
manifest hash: 4a906f7c55d8af4e962385c645852d0b3d858b42
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCp52mywK+sNU5EO8RAtOzAJwK8MOtl3B0MDAXyJDnDFt9mHNINwCfVdRG
8z35hXvIJhz3sRo0ogdUZ0s=
=eM45
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 08 Jun 2005 17:38:46 -0800 |
parents | 2c4f2be05587 |
children | a3d83bf86755 0dbcf3c9ff20 |
comparison
equal
deleted
inserted
replaced
291:2c4f2be05587 | 292:09364bcebdf0 |
---|---|
277 f = os.path.join(p, urllib.quote(path)) | 277 f = os.path.join(p, urllib.quote(path)) |
278 return httprangereader(f) | 278 return httprangereader(f) |
279 | 279 |
280 f = os.path.join(p, path) | 280 f = os.path.join(p, path) |
281 | 281 |
282 if mode != "r": | 282 mode += "b" # for that other OS |
283 | |
284 if mode[0] != "r": | |
283 try: | 285 try: |
284 s = os.stat(f) | 286 s = os.stat(f) |
285 except OSError: | 287 except OSError: |
286 d = os.path.dirname(f) | 288 d = os.path.dirname(f) |
287 if not os.path.isdir(d): | 289 if not os.path.isdir(d): |