Open zrhoffman opened 2 years ago
This is because in The Dead Language, input
is compiling and running the received input as though it were a Python script. So, equivalently eval("Pg")
. The Dead Language's equivalent of input
is raw_input
, but that returns a str
not a unicode
which is what str
is redefined to, so there also needs to be a cast there. Probably needs a shim like
if language_is_dead:
def input(*args):
if len(args) > 1:
raise TypeError("input expected at most 1 argument, got " + str(len(args)))
return unicode(raw_input(*args))
This Bug Report affects these Traffic Control components:
Current behavior:
Running the Postinstall script using terminal (instead of
input.json
) input under Python 2 fails:Expected behavior:
Running the Postinstall script using terminal (instead of
input.json
) input under Python 2 should succeed and have test coverage.