Skip to content

Commit

Permalink
Merge pull request #26 from Servon-Lee/master
Browse files Browse the repository at this point in the history
compatible with Python 2.7
  • Loading branch information
zewenli98 authored Apr 5, 2020
2 parents 9699c84 + a9e974b commit 505a4e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions zoopt/dimension.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import copy


class Dimension:
class Dimension(object):
"""
This class describes the dimension information of the search space.
"""
Expand Down Expand Up @@ -223,7 +223,7 @@ class ValueType(enumerate):
DISCRETE = 0


class Dimension2:
class Dimension2(object):
"""
This class describes the dimension information of the search space.
`Dimension2` has the same function as `Dimension` class, but the format of parameters is different.
Expand Down
2 changes: 1 addition & 1 deletion zoopt/utils/tool_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author:
Yu-Ren Liu, Yang Yu
"""

from __future__ import print_function
import pickle


Expand Down

0 comments on commit 505a4e3

Please sign in to comment.