Skip to content

Commit

Permalink
Encode to utf-8 the RADL recipes to enable special chars in them
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed May 25, 2015
1 parent de04701 commit 7b92340
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IM/radl/radl.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,10 @@ class configure(Aspect):
"""Store a RADL ``configure``."""

def __init__(self, name, recipe="", reference=False, line=None):
self.recipes = recipe
# encode the recipe to enable to set special chars in the recipes
self.recipes = str(recipe.encode('utf-8', 'ignore'))
"""Recipe content."""
self.name = name
self.name = str(name.encode('utf-8', 'ignore'))
"""Configure id."""
self.reference = reference
"""True if it is only a reference and it isn't a definition."""
Expand Down

0 comments on commit 7b92340

Please sign in to comment.