Skip to content

Commit

Permalink
Merge "[DM]: _cast is renamed as cast_" into R3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Dec 7, 2016
2 parents 8e4b821 + 524fa46 commit d0d1fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/common/generatedssuper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
_XML_ESCAPE_SEARCH_PATTERN = re.compile(r'[<>&]').search
_XML_UNESCAPE_SEARCH_PATTERN = re.compile(r'(&amp;|&lt;|&gt;)').search

def _cast(typ, value):
def cast_(typ, value):
if typ is None or value is None:
return value
return typ(value)
Expand Down

0 comments on commit d0d1fc0

Please sign in to comment.