hgweb: make sessionvars class less dense
authorYuya Nishihara <yuya@tcha.org>
Sun, 01 Apr 2018 23:03:58 +0900
changeset 37695 570a4426c5b8
parent 37694 d14dbf46e5c7
child 37696 9ac3e97b299b
hgweb: make sessionvars class less dense
mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py	Sun Apr 01 23:03:02 2018 +0900
+++ b/mercurial/hgweb/webutil.py	Sun Apr 01 23:03:58 2018 +0900
@@ -655,12 +655,16 @@
     def __init__(self, vars, start='?'):
         self._start = start
         self._vars = vars
+
     def __getitem__(self, key):
         return self._vars[key]
+
     def __setitem__(self, key, value):
         self._vars[key] = value
+
     def __copy__(self):
         return sessionvars(copy.copy(self._vars), self._start)
+
     def __iter__(self):
         separator = self._start
         for key, value in sorted(self._vars.iteritems()):