]> git.lyx.org Git - features.git/commit
cat.py: fix Python deprecation warning
authorScott Kostyshak <skostysh@lyx.org>
Thu, 19 Mar 2020 22:22:16 +0000 (18:22 -0400)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:54 +0000 (15:48 +0200)
commit5b90a76b97690456f65393065c92769f629d2631
treef79894e4818f8100db266c42917cb4fc46ccf1c9
parent187e621c663be611b5dfc898b7057d1191128286
cat.py: fix Python deprecation warning

This commit fixes the following warning:

  DeprecationWarning: 'U' mode is deprecated

Removing 'U' has no effect with Python 3 [1]:

  There is an additional mode character permitted, 'U', which no
  longer has any effect, and is considered deprecated. It previously
  enabled universal newlines in text mode, which became the default
  behaviour in Python 3.0.

[1] https://docs.python.org/3/library/functions.html?highlight=open#open
development/cmake/po/cat.py