Commit 5537d298 authored by Georg Brandl's avatar Georg Brandl

Add updated .hgeol file and fix newlines in the 3.1 branch.

parent 6e63a418
[patterns] [patterns]
** = native
**.bat = CRLF # Non human-editable files are binary
**.def = CRLF
**.dsp = CRLF **.dsp = BIN
**.dsw = CRLF **.dsw = BIN
**.mak = CRLF **.mk = BIN
**.mk = CRLF **.sln = BIN
**.rc = CRLF **.vcproj = BIN
**.sln = CRLF **.vsprops = BIN
**.vcproj = CRLF
**.vsprops = CRLF
**.aif = BIN **.aif = BIN
**.au = BIN **.au = BIN
...@@ -31,6 +28,12 @@ ...@@ -31,6 +28,12 @@
Lib/email/test/data/msg_26.txt = BIN Lib/email/test/data/msg_26.txt = BIN
Lib/test/sndhdrdata/sndhdr.* = BIN Lib/test/sndhdrdata/sndhdr.* = BIN
Lib/test/decimaltestdata/*.decTest = BIN
# All other files (which presumably are human-editable) are "native".
# This must be the last rule!
** = native
[repository] [repository]
native = LF native = LF
\ No newline at end of file
This diff is collapsed.
""" turtle-example-suite: """ turtle-example-suite:
tdemo_round_dance.py tdemo_round_dance.py
(Needs version 1.1 of the turtle module that (Needs version 1.1 of the turtle module that
comes with Python 3.1) comes with Python 3.1)
Dancing turtles have a compound shape Dancing turtles have a compound shape
consisting of a series of triangles of consisting of a series of triangles of
decreasing size. decreasing size.
Turtles march along a circle while rotating Turtles march along a circle while rotating
pairwise in opposite direction, with one pairwise in opposite direction, with one
exception. Does that breaking of symmetry exception. Does that breaking of symmetry
enhance the attractiveness of the example? enhance the attractiveness of the example?
Press any key to stop the animation. Press any key to stop the animation.
Technically: demonstrates use of compound Technically: demonstrates use of compound
shapes, transformation of shapes as well as shapes, transformation of shapes as well as
cloning turtles. The animation is cloning turtles. The animation is
controlled through update(). controlled through update().
""" """
from turtle import * from turtle import *
def stop(): def stop():
global running global running
running = False running = False
def main(): def main():
global running global running
clearscreen() clearscreen()
bgcolor("gray10") bgcolor("gray10")
tracer(False) tracer(False)
shape("triangle") shape("triangle")
f = 0.793402 f = 0.793402
phi = 9.064678 phi = 9.064678
s = 5 s = 5
c = 1 c = 1
# create compound shape # create compound shape
sh = Shape("compound") sh = Shape("compound")
for i in range(10): for i in range(10):
shapesize(s) shapesize(s)
p =get_shapepoly() p =get_shapepoly()
s *= f s *= f
c *= f c *= f
tilt(-phi) tilt(-phi)
sh.addcomponent(p, (c, 0.25, 1-c), "black") sh.addcomponent(p, (c, 0.25, 1-c), "black")
register_shape("multitri", sh) register_shape("multitri", sh)
# create dancers # create dancers
shapesize(1) shapesize(1)
shape("multitri") shape("multitri")
pu() pu()
setpos(0, -200) setpos(0, -200)
dancers = [] dancers = []
for i in range(180): for i in range(180):
fd(7) fd(7)
tilt(-4) tilt(-4)
lt(2) lt(2)
update() update()
if i % 12 == 0: if i % 12 == 0:
dancers.append(clone()) dancers.append(clone())
home() home()
# dance # dance
running = True running = True
onkeypress(stop) onkeypress(stop)
listen() listen()
cs = 1 cs = 1
while running: while running:
ta = -4 ta = -4
for dancer in dancers: for dancer in dancers:
dancer.fd(7) dancer.fd(7)
dancer.lt(2) dancer.lt(2)
dancer.tilt(ta) dancer.tilt(ta)
ta = -4 if ta > 0 else 2 ta = -4 if ta > 0 else 2
if cs < 180: if cs < 180:
right(4) right(4)
shapesize(cs) shapesize(cs)
cs *= 1.005 cs *= 1.005
update() update()
return "DONE!" return "DONE!"
if __name__=='__main__': if __name__=='__main__':
print(main()) print(main())
mainloop() mainloop()
@@echo off @@echo off
setlocal setlocal
set SVNROOT=http://svn.python.org/projects set SVNROOT=http://svn.python.org/projects
if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python
if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v
if "%1" EQU "" goto help if "%1" EQU "" goto help
if "%1" EQU "html" goto build if "%1" EQU "html" goto build
if "%1" EQU "htmlhelp" goto build if "%1" EQU "htmlhelp" goto build
if "%1" EQU "latex" goto build if "%1" EQU "latex" goto build
if "%1" EQU "text" goto build if "%1" EQU "text" goto build
if "%1" EQU "suspicious" goto build if "%1" EQU "suspicious" goto build
if "%1" EQU "linkcheck" goto build if "%1" EQU "linkcheck" goto build
if "%1" EQU "changes" goto build if "%1" EQU "changes" goto build
if "%1" EQU "checkout" goto checkout if "%1" EQU "checkout" goto checkout
if "%1" EQU "update" goto update if "%1" EQU "update" goto update
:help :help
set this=%~n0 set this=%~n0
echo HELP echo HELP
echo. echo.
echo %this% checkout echo %this% checkout
echo %this% update echo %this% update
echo %this% html echo %this% html
echo %this% htmlhelp echo %this% htmlhelp
echo %this% latex echo %this% latex
echo %this% text echo %this% text
echo %this% suspicious echo %this% suspicious
echo %this% linkcheck echo %this% linkcheck
echo %this% changes echo %this% changes
echo. echo.
goto end goto end
:checkout :checkout
svn co %SVNROOT%/external/Sphinx-0.6.5/sphinx tools/sphinx svn co %SVNROOT%/external/Sphinx-0.6.5/sphinx tools/sphinx
svn co %SVNROOT%/external/docutils-0.6/docutils tools/docutils svn co %SVNROOT%/external/docutils-0.6/docutils tools/docutils
svn co %SVNROOT%/external/Jinja-2.3.1/jinja2 tools/jinja2 svn co %SVNROOT%/external/Jinja-2.3.1/jinja2 tools/jinja2
svn co %SVNROOT%/external/Pygments-1.3.1/pygments tools/pygments svn co %SVNROOT%/external/Pygments-1.3.1/pygments tools/pygments
goto end goto end
:update :update
svn update tools/sphinx svn update tools/sphinx
svn update tools/docutils svn update tools/docutils
svn update tools/jinja2 svn update tools/jinja2
svn update tools/pygments svn update tools/pygments
goto end goto end
:build :build
if not exist build mkdir build if not exist build mkdir build
if not exist build\%1 mkdir build\%1 if not exist build\%1 mkdir build\%1
if not exist build\doctrees mkdir build\doctrees if not exist build\doctrees mkdir build\doctrees
cmd /C %PYTHON% --version cmd /C %PYTHON% --version
cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%* cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
goto end goto end
:end :end
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment