[PATCH 5 of 6] py3: replace os.sep with pycompat.ossep (part 3 of 4)

Yuya Nishihara yuya at tcha.org
Sun Dec 18 04:15:57 EST 2016


On Sat, 17 Dec 2016 21:11:44 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1481985864 -19800
> #      Sat Dec 17 20:14:24 2016 +0530
> # Node ID c816d1b5b807f8076b027f9cb9ffdeafe5fd7e62
> # Parent  a82ca84371f5f4b4213aec534ab0ccdfbd04cf9b
> py3: replace os.sep with pycompat.ossep (part 3 of 4)

> @@ -139,7 +142,7 @@
>      parts = fname.split('/')
>      for part in parts:
>          if (part in ('', os.curdir, os.pardir) or
> -            os.sep in part or os.altsep is not None and os.altsep in part):
> +        pycompat.ossep in part or os.altsep is not None and os.altsep in part):

Fixed indent in flight.


More information about the Mercurial-devel mailing list