File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,9 +220,9 @@ def to_url(self) -> str:
220220 Examples
221221 --------
222222
223- >>> hg_location = HgURL(url='https://hg.mozilla.org/mozilla-central')
223+ >>> hg_url = HgURL(url='https://hg.mozilla.org/mozilla-central')
224224
225- >>> hg_location
225+ >>> hg_url
226226 HgURL(url=https://hg.mozilla.org/mozilla-central,
227227 scheme=https,
228228 hostname=hg.mozilla.org,
@@ -231,17 +231,17 @@ def to_url(self) -> str:
231231
232232 Switch repo libvcs -> vcspull:
233233
234- >>> hg_location .path = 'mobile-browser'
234+ >>> hg_url .path = 'mobile-browser'
235235
236- >>> hg_location .to_url()
236+ >>> hg_url .to_url()
237237 'https://hg.mozilla.org/mobile-browser'
238238
239239 Switch them to localhost:
240240
241- >>> hg_location .hostname = 'localhost'
242- >>> hg_location .scheme = 'http'
241+ >>> hg_url .hostname = 'localhost'
242+ >>> hg_url .scheme = 'http'
243243
244- >>> hg_location .to_url()
244+ >>> hg_url .to_url()
245245 'http://localhost/mobile-browser'
246246
247247 Another example, `hugin <http://hugin.hg.sourceforge.net>`_:
Original file line number Diff line number Diff line change @@ -211,11 +211,11 @@ def to_url(self) -> str:
211211 Examples
212212 --------
213213
214- >>> svn_location = SvnURL(
214+ >>> svn_url = SvnURL(
215215 ... url='svn+ssh://my-username@my-server/vcs-python/libvcs'
216216 ... )
217217
218- >>> svn_location
218+ >>> svn_url
219219 SvnURL(url=svn+ssh://my-username@my-server/vcs-python/libvcs,
220220 scheme=svn+ssh,
221221 user=my-username,
@@ -225,16 +225,16 @@ def to_url(self) -> str:
225225
226226 Switch repo libvcs -> vcspull:
227227
228- >>> svn_location .path = 'vcs-python/vcspull'
228+ >>> svn_url .path = 'vcs-python/vcspull'
229229
230- >>> svn_location .to_url()
230+ >>> svn_url .to_url()
231231 'svn+ssh://my-username@my-server/vcs-python/vcspull'
232232
233233 Switch user to "tom":
234234
235- >>> svn_location .user = 'tom'
235+ >>> svn_url .user = 'tom'
236236
237- >>> svn_location .to_url()
237+ >>> svn_url .to_url()
238238 'svn+ssh://tom@my-server/vcs-python/vcspull'
239239 """
240240 parts = [self .scheme or "ssh" , "://" ]
You can’t perform that action at this time.
0 commit comments