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:
Bo Wang 2016-01-12 16:46:45 +08:00
parent 2349e192d7
commit 014eca2763

View File

@ -15,7 +15,6 @@
# under the License.
"""Model classes that form the core of instances functionality."""
from __builtin__ import setattr
from datetime import datetime
from datetime import timedelta
import re