Revision 985e3f77 lib/storage.py
b/lib/storage.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2009 Google Inc. |
|
4 |
# Copyright (C) 2009, 2011 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
258 | 258 |
# we got a function, call it with all the declared fields |
259 | 259 |
val = mapper(*values) # pylint: disable-msg=W0142 |
260 | 260 |
elif len(values) == 1: |
261 |
assert mapper is None, ("Invalid mapper value (neither callable" |
|
262 |
" nor None) for one-element fields") |
|
261 | 263 |
# we don't have a function, but we had a single field |
262 | 264 |
# declared, pass it unchanged |
263 | 265 |
val = values[0] |
Also available in: Unified diff