Skip to content

Commit

Permalink
#1 fix copy.deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
valdergallo committed Feb 19, 2017
1 parent a033aa4 commit 7268b4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyconst/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

class PyConstString(str):

def __new__(cls, label, value):
def __new__(cls, label=None, value=None):
if not value:
value = label
obj = str.__new__(cls, s(value))
obj.label = label
return obj
Expand Down

0 comments on commit 7268b4f

Please sign in to comment.