Skip to content

Commit 8693f37

Browse files
committed
Use accessor properties instead of raw attributes
1 parent 7921dc7 commit 8693f37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

identify/resources/base_resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def to_dict(self):
119119
try:
120120
temp = {
121121
attribute: getattr(
122-
self, '_' + camelcase.to_underscore(attribute),
122+
self, camelcase.to_underscore(attribute),
123123
None
124124
) for attribute in self._schema
125125
}

0 commit comments

Comments
 (0)