Imported from archive.
authorJeremy Stanley <fungi@yuggoth.org>
Fri, 2 Oct 2009 23:58:09 +0000 (23:58 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Fri, 2 Oct 2009 23:58:09 +0000 (23:58 +0000)
commite34437c01ef4ca0e2413bd08a76dd11b690c49a5
tree5b725ae65ee430b92a6c595dc955601224770009
parenta89c4b2060bf3c93207a659d88f51a4bf0f891fa
Imported from archive.

* (all): Updated copyright notices for 2009.

* mudpy, mudpy.py: Changed all Python module references to be
explicit rather than importing their contents into the local
namespace, and moved all the import statements into the objects
requiring them. Made all code Unicode clean, UTF-8 encoded, and
marked relevant byte-oriented code in preparation for later Python
2to3 migration. Wrapped all code at 79 columns and changed to
three-space/non-tab indents with K&R-style bracketing. Moved more
code from the mudpy executable into mudpy.py instead.

* mudpy.py (User.flush): Added some verbose logging when an
exception is raised sending to a socket.
(User.negotiate_telnet_options): Reworked the Telnet stack into an
RFC 1143 option negotiation queue. Implemented support for binary
mode input and output RFC 856 and made the UTF-8 decoding and
encoding/substitution dependent on it. Implemented support for
negotiate about windows size RFC 1073 and changed the word-wrapping
routines to use the client's terminal width if available.
(glyph_columns, wrap_ansi_text): Improved word-wrapping to support
East Asian Width characters, which occupy two columns instead of
just one.

* example, sample: Replaced Example data with more generic sample
data.
15 files changed:
LICENSE
archetype
banner.txt
command
example/index [deleted file]
example/second_square/location [deleted file]
example/second_square/prop [deleted file]
login.txt
menu
mudpy
mudpy.conf
mudpy.py
sample/index [moved from example/second_square/index with 77% similarity]
sample/location [new file with mode: 0644]
sample/prop [new file with mode: 0644]