From 85be3148de2bac6f3cf82856030d119a7b14ff3a Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Wed, 18 May 2011 20:31:03 -0400 Subject: [PATCH] switch to Git; update build files and feed links; update copyright year --- about.html | 2 +- advanced-iterators.html | 2 +- case-study-porting-chardet-to-python-3.html | 2 +- colophon.html | 2 +- comprehensions.html | 2 +- files.html | 2 +- generators.html | 2 +- http-web-services.html | 2 +- index.html | 8 ++++---- installing-python.html | 2 +- iterators.html | 2 +- native-datatypes.html | 2 +- packaging.html | 2 +- porting-code-to-python-3-with-2to3.html | 2 +- publish | 12 ++++++------ refactoring.html | 2 +- regular-expressions.html | 2 +- serializing.html | 2 +- special-method-names.html | 2 +- strings.html | 2 +- table-of-contents.html | 2 +- troubleshooting.html | 2 +- unit-testing.html | 2 +- util/htmlminimizer.py | 2 +- whats-new.html | 2 +- where-to-go-from-here.html | 2 +- xml.html | 2 +- your-first-python-program.html | 2 +- 28 files changed, 36 insertions(+), 36 deletions(-) diff --git a/about.html b/about.html index 49364a1..79bb5b6 100755 --- a/about.html +++ b/about.html @@ -23,5 +23,5 @@ abbr{font-variant:none;text-transform:none;letter-spacing:0}

Corrections and feedback to mark@diveintomark.org -

© 2001–10 Mark Pilgrim +

© 2001–11 Mark Pilgrim diff --git a/advanced-iterators.html b/advanced-iterators.html index 2bed5c0..830a4be 100755 --- a/advanced-iterators.html +++ b/advanced-iterators.html @@ -642,7 +642,7 @@ NameError: name '__import__' is not defined

-

© 2001–10 Mark Pilgrim +

© 2001–11 Mark Pilgrim diff --git a/case-study-porting-chardet-to-python-3.html b/case-study-porting-chardet-to-python-3.html index 48250fe..263ffd6 100755 --- a/case-study-porting-chardet-to-python-3.html +++ b/case-study-porting-chardet-to-python-3.html @@ -749,7 +749,7 @@ tests\EUC-JP\arclamp.jp.xml EUC-JP with confide

-

© 2001–10 Mark Pilgrim +

© 2001–11 Mark Pilgrim diff --git a/colophon.html b/colophon.html index aa1df0d..ca29c41 100644 --- a/colophon.html +++ b/colophon.html @@ -81,7 +81,7 @@ h1:before,h2:before{content:''}

  • OptiPNG -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/comprehensions.html b/comprehensions.html index 70f0f43..f23c820 100644 --- a/comprehensions.html +++ b/comprehensions.html @@ -376,7 +376,7 @@ TypeError: unhashable type: 'list'

  • Looping techniques

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/files.html b/files.html index b36350f..1ac287d 100644 --- a/files.html +++ b/files.html @@ -601,7 +601,7 @@ print('C')

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/generators.html b/generators.html index 1b01e47..1fa6d73 100755 --- a/generators.html +++ b/generators.html @@ -412,7 +412,7 @@ def plural(noun, rules_filename='plural5-rules.txt'):

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/http-web-services.html b/http-web-services.html index 9652561..38205bd 100755 --- a/http-web-services.html +++ b/http-web-services.html @@ -997,7 +997,7 @@ user-agent: Python-httplib2/$Rev: 259 $

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/index.html b/index.html index 8ed3ca7..416358b 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ Dive Into Python 3 - + |g" -e "s|||g" -e "s|||g" -e "s||${ga}|g" -e "s|

    |${plug}

    |g" "$f" || die "Failed to inline CSS" done -# set file permissions (hg resets these, don't know why) +# set file permissions chmod 755 build/examples build/j build/i build/d && \ chmod 644 build/*.html build/*.css build/*.txt build/*.zip build/examples/* build/examples/.htaccess build/j/* build/j/.htaccess build/i/* build/i/.htaccess build/d/.htaccess build/.htaccess || die "Failed to reset file permissions" diff --git a/refactoring.html b/refactoring.html index f70ef39..160ff07 100755 --- a/refactoring.html +++ b/refactoring.html @@ -471,7 +471,7 @@ OK

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/regular-expressions.html b/regular-expressions.html index a7dd74b..abdf9fa 100755 --- a/regular-expressions.html +++ b/regular-expressions.html @@ -434,7 +434,7 @@ AttributeError: 'NoneType' object has no attribute 'groups'

    Regular expressions are extremely powerful, but they are not the correct solution for every problem. You should learn enough about them to know when they are appropriate, when they will solve your problems, and when they will cause more problems than they solve.

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/serializing.html b/serializing.html index cc37a6a..86278f6 100644 --- a/serializing.html +++ b/serializing.html @@ -655,7 +655,7 @@ NameError: name 'entry' is not defined

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/special-method-names.html b/special-method-names.html index a9c6357..ea90675 100644 --- a/special-method-names.html +++ b/special-method-names.html @@ -838,7 +838,7 @@ def __exit__(self, *args):

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/strings.html b/strings.html index 478c0df..ecb7b92 100755 --- a/strings.html +++ b/strings.html @@ -458,7 +458,7 @@ TypeError: Can't convert 'bytes' object to str implicitly

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/table-of-contents.html b/table-of-contents.html index ef7acdd..86d22e5 100755 --- a/table-of-contents.html +++ b/table-of-contents.html @@ -448,5 +448,5 @@ li ol{font-weight:normal} -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/troubleshooting.html b/troubleshooting.html index 7a2a638..6a62ebe 100644 --- a/troubleshooting.html +++ b/troubleshooting.html @@ -71,6 +71,6 @@ Type "help", "copyright", "credits" or "license" for more information.

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/unit-testing.html b/unit-testing.html index 070afcc..30815ac 100755 --- a/unit-testing.html +++ b/unit-testing.html @@ -821,7 +821,7 @@ OK

    And the anticlimax award of the year goes to… the word “OK”, which is printed by the unittest module when all the tests pass.

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/util/htmlminimizer.py b/util/htmlminimizer.py index 4356c78..1180546 100755 --- a/util/htmlminimizer.py +++ b/util/htmlminimizer.py @@ -55,5 +55,5 @@ with open(output_file, 'w', encoding="utf-8") as _out, open(input_file, encoding else: _out.write(g) if g.lower() == '': - _out.write('\n\n'.format(os.path.basename(input_file))) + _out.write('\n\n'.format(os.path.basename(input_file))) diff --git a/whats-new.html b/whats-new.html index 64f9924..8d7c945 100644 --- a/whats-new.html +++ b/whats-new.html @@ -46,4 +46,4 @@ h3:before{content:''}

    Also new in Python — not in the language but in the community — is the emergence of code repositories like The Python Package Index (PyPI). Python comes with utilities to package your code in standard formats and distribute those packages on PyPI. Read Packaging Python Libraries for details. -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/where-to-go-from-here.html b/where-to-go-from-here.html index 68dfefd..c08daca 100644 --- a/where-to-go-from-here.html +++ b/where-to-go-from-here.html @@ -81,6 +81,6 @@

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/xml.html b/xml.html index 40a20b7..c5b1350 100755 --- a/xml.html +++ b/xml.html @@ -670,7 +670,7 @@ lxml.etree.XMLSyntaxError: Entity 'hellip' not defined, line 3, column 28

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim diff --git a/your-first-python-program.html b/your-first-python-program.html index a3e528d..a8b9eaf 100755 --- a/your-first-python-program.html +++ b/your-first-python-program.html @@ -383,7 +383,7 @@ if __name__ == '__main__':

  • Python Reference Manual explains what it means to say that everything in Python is an object, because some people are pedants and like to discuss that sort of thing at great length.

    -

    © 2001–10 Mark Pilgrim +

    © 2001–11 Mark Pilgrim