comparison rhodecode/lib/compat.py @ 1818:cf51bbfb120e beta

auto white-space removal
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 29 Dec 2011 07:35:51 +0200
parents d6cb805c92fd
children 89efedac4e6c
comparison
equal deleted inserted replaced
1817:523b1011a625 1818:cf51bbfb120e
2 """ 2 """
3 rhodecode.lib.compat 3 rhodecode.lib.compat
4 ~~~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~~~
5 5
6 Python backward compatibility functions and common libs 6 Python backward compatibility functions and common libs
7 7
8 8
9 :created_on: Oct 7, 2011 9 :created_on: Oct 7, 2011
10 :author: marcink 10 :author: marcink
11 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com> 11 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
12 :license: GPLv3, see COPYING for more details. 12 :license: GPLv3, see COPYING for more details.
13 """ 13 """
14 # This program is free software: you can redistribute it and/or modify 14 # This program is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by 15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or 16 # the Free Software Foundation, either version 3 of the License, or
88 _nil = _Nil() 88 _nil = _Nil()
89 89
90 class _odict(object): 90 class _odict(object):
91 """Ordered dict data structure, with O(1) complexity for dict operations 91 """Ordered dict data structure, with O(1) complexity for dict operations
92 that modify one element. 92 that modify one element.
93 93
94 Overwriting values doesn't change their original sequential order. 94 Overwriting values doesn't change their original sequential order.
95 """ 95 """
96 96
97 def _dict_impl(self): 97 def _dict_impl(self):
98 return None 98 return None