[Checkins] SVN: van.potomo/trunk/ - Fix issue where recently deleted files could cause an exception if

Brian Sutherland cvs-admin at zope.org
Thu Aug 15 10:04:17 CEST 2013


Log message for revision 130292:
  - Fix issue where recently deleted files could cause an exception if
    they were still in SOURCES.txt
  - Prepare for 2.0 release.
  

Changed:
  U   van.potomo/trunk/CHANGES.txt
  U   van.potomo/trunk/van/potomo/__init__.py

-=-
Modified: van.potomo/trunk/CHANGES.txt
===================================================================
--- van.potomo/trunk/CHANGES.txt	2013-08-15 08:00:26 UTC (rev 130291)
+++ van.potomo/trunk/CHANGES.txt	2013-08-15 08:04:17 UTC (rev 130292)
@@ -1,11 +1,13 @@
 Changes
 =======
 
-1.0.1 (unknown)
-------------------
+2.0 (2013-08-15)
+----------------
 
 - Conform to Zope repository policy.
 - Support Python 3
+- Fix issue where recently deleted files could cause an exception if
+  they were still in SOURCES.txt
 
 1.0.0 (2009-03-10)
 ------------------

Modified: van.potomo/trunk/van/potomo/__init__.py
===================================================================
--- van.potomo/trunk/van/potomo/__init__.py	2013-08-15 08:00:26 UTC (rev 130291)
+++ van.potomo/trunk/van/potomo/__init__.py	2013-08-15 08:04:17 UTC (rev 130292)
@@ -53,8 +53,9 @@
         _compile_pofiles(sources)
 
 def _is_pofile(filename):
-    if filename.endswith('.po'):
-        assert os.path.exists(filename)
+    if filename.endswith('.po') and os.path.exists(filename):
+        # file may not exist if it has recently been deleted and
+        # is still in SOURCES.txt
         return True
     return False
 



More information about the checkins mailing list