Terry, here is a recent item that you may have missed while you were away:
https://groups.google.com/d/msg/leo-editor/yR8eL5cZpi4/8z9hUBxR90oJ
I'm going to delegate it to you :-)
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\leo-editor\leo\core\leoPlugins.py",
line 357, in callTagHandler
result = handler(tag,keywords)
File "C:\Python27\Lib\site-packages\leo-editor\leo\core\leoPlugins.py",
line 357, in callTagHandler
result = handler(tag,keywords) File
"C:\Python27\Lib\site-packages\leo-editor\leo\plugins\todo.py", line 1173,
in updateUI
self.ui.UI.createdTxt.setText(created.strftime("%d %b %y?"))
File "C:\Python27\Lib\site-packages\leo-editor\leo\plugins\todo.py", line
1173, in updateUI
self.ui.UI.createdTxt.setText(created.strftime("%d %b %y?"))
ValueError: year=1106 is before 1900; the datetime strftime() methods
require year >= 1900
ValueError: year=1106 is before 1900; the datetime strftime() methods
require year >= 1900
[end]
The todo.py plugin appears to be the the problem. When I disable todo.py
there is no traceback error.
EKR: Here are my notes from the Python docs:
From: https://docs.python.org/2/library/time.html
Year 2000 (Y2K) issues: Python depends on the platform’s C library, which
generally doesn’t have year 2000 issues, since all dates and times are
represented internally as seconds since the epoch. Functions accepting a
struct_time (see below) generally require a 4-digit year. For backward
compatibility, 2-digit years are supported if the module variable
accept2dyear is a non-zero integer; this variable is initialized to 1
unless the environment variable PYTHONY2K is set to a non-empty string, in
which case it is initialized to 0.
Thus, you can set PYTHONY2K to a non-empty string in the environment to
require 4-digit years for all year input. When 2-digit years are accepted,
they are converted according to the POSIX or X/Open standard: values 69-99
are mapped to 1969-1999, and values 0–68 are mapped to 2000–2068. Values
100–1899 are always illegal.
Eward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.