[CMF-checkins] SVN: CMF/trunk/CODINGSTYLE.txt - use a more generic pattern

Yvo Schubbe y.2011 at wcm-solutions.de
Tue Feb 22 05:04:27 EST 2011


Log message for revision 120511:
  - use a more generic pattern

Changed:
  U   CMF/trunk/CODINGSTYLE.txt

-=-
Modified: CMF/trunk/CODINGSTYLE.txt
===================================================================
--- CMF/trunk/CODINGSTYLE.txt	2011-02-22 10:03:34 UTC (rev 120510)
+++ CMF/trunk/CODINGSTYLE.txt	2011-02-22 10:04:27 UTC (rev 120511)
@@ -55,7 +55,7 @@
     >>> aware_dt.tzinfo is None
     False
 
-    >>> naive_DT = DateTime(str(aware_DT)[:19])
+    >>> naive_DT = DateTime(str(aware_DT).rsplit(' ', 1)[0])
     >>> naive_DT.timezoneNaive()
     True
     >>> naive_dt = aware_dt.replace(tzinfo=None)



More information about the CMF-checkins mailing list