Show More
@@ -257,18 +257,20 b' class url:' | |||||
257 | def __repr__(self): |
|
257 | def __repr__(self): | |
258 | attrs = [] |
|
258 | attrs = [] | |
259 | for a in ( |
|
259 | for a in ( | |
260 |
|
|
260 | 'scheme', | |
261 |
|
|
261 | 'user', | |
262 |
|
|
262 | 'passwd', | |
263 |
|
|
263 | 'host', | |
264 |
|
|
264 | 'port', | |
265 |
|
|
265 | 'path', | |
266 |
|
|
266 | 'query', | |
267 |
|
|
267 | 'fragment', | |
268 | ): |
|
268 | ): | |
269 | v = getattr(self, a) |
|
269 | v = getattr(self, a) | |
270 | if v is not None: |
|
270 | if v is not None: | |
271 | attrs.append(b'%s: %r' % (a, pycompat.bytestr(v))) |
|
271 | line = b'%s: %r' | |
|
272 | line %= (pycompat.bytestr(a), pycompat.bytestr(v)) | |||
|
273 | attrs.append(line) | |||
272 | return b'<url %s>' % b', '.join(attrs) |
|
274 | return b'<url %s>' % b', '.join(attrs) | |
273 |
|
275 | |||
274 | def __bytes__(self): |
|
276 | def __bytes__(self): |
General Comments 0
You need to be logged in to leave comments.
Login now