Skip to content

Commit

Permalink
advanced docs updated: removed python 2 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arekbulski committed Feb 8, 2021
1 parent 5a762b1 commit 92ca057
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ Bytes and bits

.. warning::

Python 3 known problem:

Unprefixed string literals like "data" are on Python 3 interpreted as unicode. This causes failures when using fields like `Bytes`.

"Strings" of bytes (`str` in PY2 and `bytes` in PY3) can be moved around as-is. Bits are discussed in a later chapter.
Expand All @@ -82,12 +80,6 @@ b'12345'
Strings
========

.. warning::

Python 2 known problem:

Unprefixed string literals like "text" are on Python 2 interpreted as bytes. This causes failures when using fields that operate on unicode objects only like String* classes.

.. note::

Encodings like UTF8 UTF16 UTF32 (including little-endian) work fine with all String* classes. However two of them, PaddedString and CString, support only encodings listed explicitly in :class:`~construct.core.possiblestringencodings` .
Expand Down Expand Up @@ -186,8 +178,6 @@ Processing files

.. warning::

Python 3 known problem:

Opening a file without mode like ``open(filename)`` implies text mode, which cannot be parsed or build.

Constructs can parse both in-memory data (bytes) and binary files:
Expand Down

0 comments on commit 92ca057

Please sign in to comment.