[deap] push by felix.antoine.fortin - Fix regression introduced by d4d3b7eb53cd.... on 2014-05-15 15:40 GMT

2 views
Skip to first unread message

de...@googlecode.com

unread,
May 15, 2014, 11:40:41 AM5/15/14
to deap-de...@googlegroups.com
Revision: 3dc36b2db0a6
Branch: dev
Author: felix.antoine.fortin
Date: Thu May 15 15:39:44 2014 UTC
Log: Fix regression introduced by d4d3b7eb53cd.

The merge changed creator argument from classname
to simply name. However, the warning on the
duplicated class name was missing from default branch
and used the variable classname. Therefore, when
merging, the variable is not properly renamed.
http://code.google.com/p/deap/source/detail?r=3dc36b2db0a6

Modified:
/deap/creator.py

=======================================
--- /deap/creator.py Wed Apr 30 20:00:27 2014 UTC
+++ /deap/creator.py Thu May 15 15:39:44 2014 UTC
@@ -125,10 +125,10 @@
usage.
"""

- if classname in globals():
+ if name in globals():
warnings.warn("A class named '{0}' has already been created and
it "
"will be overwritten. Consider deleting previous "
- "creation of that class or rename
it.".format(classname),
+ "creation of that class or rename it.".format(name),
RuntimeWarning)

dict_inst = {}
Reply all
Reply to author
Forward
0 new messages