yuja added inline comments.

INLINE COMMENTS

> stringutil.py:526
> +                   __future__.unicode_literals.compiler_flag, True)
> +    return eval(code, globs, {})

Can't we use `ast.literal_eval()` instead of unsafe `eval()` ?

https://docs.python.org/2.7/library/ast.html#ast.literal_eval

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2948

To: indygreg, #hg-reviewers, durin42
Cc: yuja, durin42, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
[email protected]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to