##// END OF EJS Templates
fixed str2bool typo
marcink -
r1152:008bdfdd rhodecode-0.0.1.1.5 default
parent child Browse files
Show More
@@ -4,22 +4,22 b''
4 4 ~~~~~~~~~~~~~~~~~~~~~~~
5 5
6 6 Some simple helper functions
7
7
8 8 :created_on: Jan 5, 2011
9 9 :author: marcink
10 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
10 :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
11 11 :license: GPLv3, see COPYING for more details.
12 12 """
13 13 # This program is free software; you can redistribute it and/or
14 14 # modify it under the terms of the GNU General Public License
15 15 # as published by the Free Software Foundation; version 2
16 16 # of the License or (at your opinion) any later version of the license.
17 #
17 #
18 18 # This program is distributed in the hope that it will be useful,
19 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 21 # GNU General Public License for more details.
22 #
22 #
23 23 # You should have received a copy of the GNU General Public License
24 24 # along with this program; if not, write to the Free Software
25 25 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
@@ -34,7 +34,7 b' def str2bool(v):'
34 34 return False
35 35 else:
36 36 raise ValueError("String is not true/false: %r" % obj)
37 return bool(obj)
37 return bool(v)
38 38
39 39 def generate_api_key(username, salt=None):
40 40 from tempfile import _RandomNameSequence
General Comments 0
You need to be logged in to leave comments. Login now