From 262da59c7790cdadd60ea9612bc9e3c1616863fd Mon Sep 17 00:00:00 2001 From: "Paul R. Tagliamonte" Date: Sat, 6 Apr 2013 20:01:55 -0400 Subject: [PATCH] Revert "Remove useless code" This reverts commit 801c4e0099035bc44a70375b02017e935461daef. --- hy/models/string.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hy/models/string.py b/hy/models/string.py index 8e6f82e..ec64504 100644 --- a/hy/models/string.py +++ b/hy/models/string.py @@ -34,3 +34,7 @@ class HyString(HyObject, _str_type): scripts. It's either a ``str`` or a ``unicode``, depending on the Python version. """ + + def __new__(cls, value): + obj = _str_type.__new__(cls, value) + return obj