[Checkins] SVN: DateTime/trunk/ Removed deprecated `_isDST` and `_localzone` class variables.

Hanno Schlichting hannosch at hannosch.eu
Sun May 8 07:48:42 EDT 2011


Log message for revision 121585:
  Removed deprecated `_isDST` and `_localzone` class variables.
  

Changed:
  U   DateTime/trunk/CHANGES.txt
  U   DateTime/trunk/src/DateTime/DateTime.py

-=-
Modified: DateTime/trunk/CHANGES.txt
===================================================================
--- DateTime/trunk/CHANGES.txt	2011-05-08 11:47:16 UTC (rev 121584)
+++ DateTime/trunk/CHANGES.txt	2011-05-08 11:48:41 UTC (rev 121585)
@@ -4,6 +4,8 @@
 3.0 (unreleased)
 ----------------
 
+- Removed deprecated `_isDST` and `_localzone` class variables.
+
 - Moved pytz cache from `DateTime._tzinfo` to a module global `_TZINFO`.
 
 - Make DateTime a new-style class and limit its available attributes via a

Modified: DateTime/trunk/src/DateTime/DateTime.py
===================================================================
--- DateTime/trunk/src/DateTime/DateTime.py	2011-05-08 11:47:16 UTC (rev 121584)
+++ DateTime/trunk/src/DateTime/DateTime.py	2011-05-08 11:48:41 UTC (rev 121585)
@@ -416,9 +416,6 @@
     _localzone0 = _findLocalTimeZoneName(0)
     _localzone1 = _findLocalTimeZoneName(1)
     _multipleZones = (_localzone0 != _localzone1)
-    # For backward compatibility only:
-    _isDST = localtime(time())[8]
-    _localzone  = _isDST and _localzone1 or _localzone0
 
     # Limit the amount of instance attributes
     __slots__ = (



More information about the checkins mailing list