Commits

Antoine Pitrou committed 6d42719

Rename join() to joinpath().

Comments (0)

Files changed (3)

    unintended effects.
 
 
-.. method:: PurePath.join(*other)
+.. method:: PurePath.joinpath(*other)
 
    Calling this method is equivalent to indexing the path with each of
    the *other* arguments in turn::
 
-      >>> PurePosixPath('/etc').join('passwd')
+      >>> PurePosixPath('/etc').joinpath('passwd')
       PurePosixPath('/etc/passwd')
-      >>> PurePosixPath('/etc').join(PurePosixPath('passwd'))
+      >>> PurePosixPath('/etc').joinpath(PurePosixPath('passwd'))
       PurePosixPath('/etc/passwd')
-      >>> PurePosixPath('/etc').join('init.d', 'apache2')
+      >>> PurePosixPath('/etc').joinpath('init.d', 'apache2')
       PurePosixPath('/etc/init.d/apache2')
-      >>> PureNTPath('c:').join('/Program Files')
+      >>> PureNTPath('c:').joinpath('/Program Files')
       PureNTPath('c:\\Program Files')
 
 
             self._pparts = _PathParts(self)
             return self._pparts
 
-    def join(self, *args):
+    def joinpath(self, *args):
         """Combine this path with one or several arguments, and return a
         new path representing either a subpath (if all arguments are relative
         paths) or a totally different path (if one of the arguments is
     def test_join_common(self):
         P = self.cls
         p = P('a/b')
-        pp = p.join('c')
+        pp = p.joinpath('c')
         self.assertEqual(pp, P('a/b/c'))
         self.assertIs(type(pp), type(p))
-        pp = p.join('c', 'd')
+        pp = p.joinpath('c', 'd')
         self.assertEqual(pp, P('a/b/c/d'))
-        pp = p.join(P('c'))
+        pp = p.joinpath(P('c'))
         self.assertEqual(pp, P('a/b/c'))
-        pp = p.join('/c')
+        pp = p.joinpath('/c')
         self.assertEqual(pp, P('/c'))
 
     def test_getitem_common(self):