summaryrefslogtreecommitdiff
path: root/sphinx/util/png.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/png.py')
-rw-r--r--sphinx/util/png.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/util/png.py b/sphinx/util/png.py
index a2c8f6708..2fb97a901 100644
--- a/sphinx/util/png.py
+++ b/sphinx/util/png.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
sphinx.util.png
~~~~~~~~~~~~~~~
@@ -22,7 +21,7 @@ IEND_CHUNK = b'\x00\x00\x00\x00IEND\xAE\x42\x60\x82'
def read_png_depth(filename):
- # type: (unicode) -> int
+ # type: (str) -> int
"""Read the special tEXt chunk indicating the depth from a PNG file."""
with open(filename, 'rb') as f:
f.seek(- (LEN_IEND + LEN_DEPTH), 2)
@@ -35,7 +34,7 @@ def read_png_depth(filename):
def write_png_depth(filename, depth):
- # type: (unicode, int) -> None
+ # type: (str, int) -> None
"""Write the special tEXt chunk indicating the depth to a PNG file.
The chunk is placed immediately before the special IEND chunk.