[Checkins] SVN: z3c.coverage/trunk/src/z3c/coverage/README.txt Minor refactoring.

Marius Gedminas cvs-admin at zope.org
Wed Sep 5 13:02:16 UTC 2012


Log message for revision 127715:
  Minor refactoring.

Changed:
  U   z3c.coverage/trunk/src/z3c/coverage/README.txt

-=-
Modified: z3c.coverage/trunk/src/z3c/coverage/README.txt
===================================================================
--- z3c.coverage/trunk/src/z3c/coverage/README.txt	2012-09-05 13:02:07 UTC (rev 127714)
+++ z3c.coverage/trunk/src/z3c/coverage/README.txt	2012-09-05 13:02:12 UTC (rev 127715)
@@ -147,7 +147,7 @@
 Given a path, the function tries to determine the revision number of the
 file. If it fails, "UNKNOWN" is returned:
 
-  >>> path = os.path.split(z3c.coverage.__file__)[0]
+  >>> path = os.path.dirname(z3c.coverage.__file__)
   >>> coveragereport.get_svn_revision(path) != 'UNKNOWN'
   True
 
@@ -161,7 +161,7 @@
 This function takes a cover file, converts it to a nicely colored HTML output:
 
   >>> filename = os.path.join(
-  ...     os.path.split(z3c.coverage.__file__)[0], '__init__.py')
+  ...     os.path.dirname(z3c.coverage.__file__), '__init__.py')
 
   >>> print coveragereport.syntax_highlight(filename)
   ... # this will fail if you don't have enscript in your $PATH



More information about the checkins mailing list