X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=blobdiff_plain;f=pyderasn.py;h=39f2d885062a49f4e59b630e1305ffa21fede80b;hp=6c14e4619972a8a31e68fdafd8cefbd48f344659;hb=26557d24cc3e80445c4ce6792fb00e75e8697ef9;hpb=7af6ff46e2927030706fc4c0df0ddeadfa55dd79 diff --git a/pyderasn.py b/pyderasn.py index 6c14e46..39f2d88 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -3818,7 +3818,7 @@ class Enumerated(Integer): def escape_control_unicode(c): - if unicat(c).startswith("C"): + if unicat(c)[0] == "C": c = repr(c).lstrip("u").strip("'") return c