Mercurial > hg
comparison mercurial/ui.py @ 48946:642e31cb55f0
py3: use class X: instead of class X(object):
The inheritance from object is implied in Python 3. So this should
be equivalent.
This change was generated via an automated search and replace. So there
may have been some accidental changes.
Differential Revision: https://phab.mercurial-scm.org/D12352
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 13:08:28 -0700 |
parents | 2cce2fa5bcf7 |
children | 7afa96d3b484 |
comparison
equal
deleted
inserted
replaced
48945:55d132525155 | 48946:642e31cb55f0 |
---|---|
167 | 167 |
168 def _maybebytesurl(maybestr): | 168 def _maybebytesurl(maybestr): |
169 return pycompat.rapply(pycompat.bytesurl, maybestr) | 169 return pycompat.rapply(pycompat.bytesurl, maybestr) |
170 | 170 |
171 | 171 |
172 class httppasswordmgrdbproxy(object): | 172 class httppasswordmgrdbproxy: |
173 """Delays loading urllib2 until it's needed.""" | 173 """Delays loading urllib2 until it's needed.""" |
174 | 174 |
175 def __init__(self): | 175 def __init__(self): |
176 self._mgr = None | 176 self._mgr = None |
177 | 177 |
205 | 205 |
206 # _reqexithandlers: callbacks run at the end of a request | 206 # _reqexithandlers: callbacks run at the end of a request |
207 _reqexithandlers = [] | 207 _reqexithandlers = [] |
208 | 208 |
209 | 209 |
210 class ui(object): | 210 class ui: |
211 def __init__(self, src=None): | 211 def __init__(self, src=None): |
212 """Create a fresh new ui object if no src given | 212 """Create a fresh new ui object if no src given |
213 | 213 |
214 Use uimod.ui.load() to create a ui which knows global and user configs. | 214 Use uimod.ui.load() to create a ui which knows global and user configs. |
215 In most cases, you should use ui.copy() to create a copy of an existing | 215 In most cases, you should use ui.copy() to create a copy of an existing |