Patchwork [2,of,7] hgweb: make sessionvars class less dense

login
register
mail settings
Submitter Yuya Nishihara
Date April 14, 2018, 12:49 p.m.
Message ID <8bee5eca0b75333eee2c.1523710152@mimosa>
Download mbox | patch
Permalink /patch/31021/
State Accepted
Headers show

Comments

Yuya Nishihara - April 14, 2018, 12:49 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1522591438 -32400
#      Sun Apr 01 23:03:58 2018 +0900
# Node ID 8bee5eca0b75333eee2c555663ae535005505991
# Parent  7b406ab5b3e9c3da9527a3001ba62e29506bd73a
hgweb: make sessionvars class less dense

Patch

diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py
+++ b/mercurial/hgweb/webutil.py
@@ -655,12 +655,16 @@  class sessionvars(object):
     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()):