diff --git a/remarshal.py b/remarshal.py index 1834a15..22bbdb9 100755 --- a/remarshal.py +++ b/remarshal.py @@ -78,20 +78,6 @@ def timestamp_constructor(loader, node): ) -# Construct YAML strs as Unicode in Python 2. -# We are shamelessly using an exception for flow control here. -try: - unicode - - for loader in loaders: - loader.add_constructor( - u'tag:yaml.org,2002:str', - lambda self, node: self.construct_scalar(node) - ) -except NameError: - pass - - # === JSON === if hasattr(json, 'JSONDecodeError'):