Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44f2a2f
)
python: Use python3 super() correctly.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 22 Dec 2011 04:25:21 +0000
(
05:25
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 22 Dec 2011 04:25:21 +0000
(
05:25
+0100)
python3/ashd/perf.py
patch
|
blob
|
blame
|
history
diff --git
a/python3/ashd/perf.py
b/python3/ashd/perf.py
index
c4b0950
..
6942424
100644
(file)
--- a/
python3/ashd/perf.py
+++ b/
python3/ashd/perf.py
@@
-13,7
+13,7
@@
if pdm:
class reqstart(pdm.perf.startevent):
def __init__(self, env):
- super(
reqstart, self
).__init__()
+ super().__init__()
self.method = env.get("REQUEST_METHOD")
self.uri = env.get("REQUEST_URI")
self.host = env.get("HTTP_HOST")
@@
-22,7
+22,7
@@
if pdm:
class reqfinish(pdm.perf.finishevent):
def __init__(self, start, aborted, status):
- super(
reqfinish, self
).__init__(start, aborted)
+ super().__init__(start, aborted)
self.status = status
class request(object):