Skip to content

Commit

Permalink
Pylint run on creator module.
Browse files Browse the repository at this point in the history
--HG--
branch : 0.7-dev
  • Loading branch information
felix.antoine.fortin committed May 24, 2011
1 parent 0f967b6 commit 58742be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deap/creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

import array
import copy
import types


"""Some classes in Python's standard library as well as third party library
may be in part incompatible with the logic used in DEAP. In order to palliate
Expand Down Expand Up @@ -58,8 +56,8 @@ def __array_finalize__(self, obj):
# this might not be desirable for example in the case of an ES.
self.__init__()

# Instead, e could use the following that will simply deepcopy every
# member that is present in the original class
# Instead, e could use the following that will simply deepcopy
# every member that is present in the original class
# This is significantly slower.
#if self.__class__ == obj.__class__:
# self.__dict__.update(copy.deepcopy(obj.__dict__))
Expand Down

0 comments on commit 58742be

Please sign in to comment.