Skip to content

Commit

Permalink
Merge pull request #53 from rmcgibbo/py26
Browse files Browse the repository at this point in the history
py26 error
  • Loading branch information
rmcgibbo committed Nov 14, 2014
2 parents 28c4fad + 8fac958 commit edb7d94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osprey/search_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class IntVariable(namedtuple('IntVariable', ('name', 'min', 'max'))):
__slots__ = ()

def __repr__(self):
return '{:<25s}\t(int) {:8d} <= x <= {:d}'.format(
return '{0:<25s}\t(int) {1:8d} <= x <= {2:d}'.format(
self.name, self.min, self.max)

def rvs(self, random):
Expand All @@ -128,7 +128,7 @@ class FloatVariable(namedtuple('FloatVariable',
__slots__ = ()

def __repr__(self):
return '{:<25s}\t(float) {:8f} <= x < {:f}'.format(
return '{0:<25s}\t(float) {1:8f} <= x < {2:f}'.format(
self.name, self.min, self.max)

def rvs(self, random):
Expand Down Expand Up @@ -174,7 +174,7 @@ class EnumVariable(namedtuple('EnumVariable', ('name', 'choices'))):

def __repr__(self):
c = [str(e) for e in self.choices]
return '{:<25s}\t(enum) choices = ({:s})'.format(
return '{0:<25s}\t(enum) choices = ({1:s})'.format(
self.name, ', '.join(c))

def rvs(self, random):
Expand Down

0 comments on commit edb7d94

Please sign in to comment.