Code formating.
This commit is contained in:
@ -5,6 +5,7 @@ __all__ = [
|
||||
'Option',
|
||||
]
|
||||
|
||||
|
||||
class ConfigurableMeta(type):
|
||||
"""
|
||||
Metaclass for Configurables that will add options to a special __options__ dict.
|
||||
|
||||
@ -26,5 +26,3 @@ class Option:
|
||||
|
||||
def __set__(self, inst, value):
|
||||
inst.__options_values__[self.name] = self.type(value) if self.type else value
|
||||
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ class CsvReader(CsvHandler, FileReader):
|
||||
|
||||
for row in reader:
|
||||
if len(row) != field_count:
|
||||
raise ValueError('Got a line with %d fields, expecting %d.' % (len(row), field_count,))
|
||||
raise ValueError('Got a line with %d fields, expecting %d.' % (len(row), field_count, ))
|
||||
|
||||
yield dict(zip(headers.value, row))
|
||||
|
||||
|
||||
@ -129,10 +129,10 @@ class ValueHolder:
|
||||
return divmod(other, self.value)
|
||||
|
||||
def __pow__(self, other):
|
||||
return self.value ** other
|
||||
return self.value**other
|
||||
|
||||
def __rpow__(self, other):
|
||||
return other ** self.value
|
||||
return other**self.value
|
||||
|
||||
def __ipow__(self, other):
|
||||
self.value **= other
|
||||
|
||||
Reference in New Issue
Block a user