From 1a9389653cfec45be04f9cc1c7b820fa4d9e6b8b Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Wed, 14 Dec 2016 10:03:49 +0000 Subject: [PATCH] py23: minor typo in docstring --- Lib/fontTools/misc/py23.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fontTools/misc/py23.py b/Lib/fontTools/misc/py23.py index b692e9863..b7c2f9693 100644 --- a/Lib/fontTools/misc/py23.py +++ b/Lib/fontTools/misc/py23.py @@ -188,8 +188,8 @@ def open(file, mode='r', buffering=-1, encoding=None, errors=None, One difference is that the 'opener' keyword argument is only supported in Python 3. Here we pass the value of 'opener' only when it is not None. - This causes Python 2 to raise TypeError, complaining about the number of - expected arguments, so it must be avoided if py2 or py2-3 contexts. + This causes Python 2 to raise TypeError, complaining about the number of + expected arguments, so it must be avoided in py2 or py2-3 contexts. Another difference between 2 and 3, this time on Windows, has to do with opening files by name or by file descriptor.