[Python-checkins] peps: Fix an example

antoine.pitrou python-checkins at python.org
Sat Nov 16 19:32:43 CET 2013


http://hg.python.org/peps/rev/e7f328e9a005
changeset:   5276:e7f328e9a005
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sat Nov 16 19:32:39 2013 +0100
summary:
  Fix an example

files:
  pep-0428.txt |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/pep-0428.txt b/pep-0428.txt
--- a/pep-0428.txt
+++ b/pep-0428.txt
@@ -217,7 +217,7 @@
     '/'
     >>> p.parts
     <PosixPath.parts: ['/', 'home', 'antoine', 'pathlib', 'setup.py']>
-    >>> p.relative('/home/antoine')
+    >>> p.relative_to('/home/antoine')
     PosixPath('pathlib/setup.py')
     >>> p.exists()
     True

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list