Use built-in function setattr() directly
__builtin__ does not exist in Python 3. setattr() is built-in function in both python2 and python3. ref:https://docs.python.org/2/library/functions.html https://docs.python.org/3/library/functions.html Partially implements: blueprint trove-python3 Change-Id: I652b2b82656826944d17fad07ef9dd2e5d228201
This commit is contained in:
parent
2349e192d7
commit
014eca2763
@ -15,7 +15,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
"""Model classes that form the core of instances functionality."""
|
"""Model classes that form the core of instances functionality."""
|
||||||
from __builtin__ import setattr
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import re
|
import re
|
||||||
|
Loading…
Reference in New Issue
Block a user