[py-svn] r7924 - in py/dist/py: . path/local

hpk at codespeak.net hpk at codespeak.net
Sat Dec 18 22:39:15 CET 2004


Author: hpk
Date: Sat Dec 18 22:39:15 2004
New Revision: 7924

Modified:
   py/dist/py/__init__.py
   py/dist/py/path/local/local.py
Log:
umm, made the compile/getsource actually available 
and improved some docstrings of the local path implemenation. 



Modified: py/dist/py/__init__.py
==============================================================================
--- py/dist/py/__init__.py	(original)
+++ py/dist/py/__init__.py	Sat Dec 18 22:39:15 2004
@@ -47,6 +47,8 @@
     'magic.AssertionError'   : ('./magic/assertion.py', 'AssertionError'),
     'code.Source'            : ('./code/source.py', 'Source'),
     'code.RunnerFrame'       : ('./code/frame.py', 'RunnerFrame'),
+    'code.compile'           : ('./code/source.py', 'compile_'),
+    'code.getsource'         : ('./code/source.py', 'getsource'),
     'execnet.SocketGateway'  : ('./execnet/register.py', 'SocketGateway'),
     'execnet.PopenGateway'   : ('./execnet/register.py', 'PopenGateway'),
 })

Modified: py/dist/py/path/local/local.py
==============================================================================
--- py/dist/py/path/local/local.py	(original)
+++ py/dist/py/path/local/local.py	Sat Dec 18 22:39:15 2004
@@ -16,8 +16,8 @@
     from py.__impl__.path.local.posix import PosixMixin as PlatformMixin 
 
 class LocalPath(common.FSPathBase, PlatformMixin):
-    """ the fully specialized local path implementation. 
-    (including symbolic links and all kinds of stuff.)
+    """ Local path implementation offering access/modification 
+        methods similar to os.path. 
     """
     sep = os.sep
     class Checkers(common.FSCheckers):
@@ -398,7 +398,7 @@
         """ return a path object found by looking at the systems 
             underlying PATH specification. If the checker is not None
             it will be invoked to filter matching paths.  
-            Note: This is not working on plain win32 systems yet. 
+            Note: This is probably not working on plain win32 systems yet. 
         """ 
         for x in py.std.os.environ['PATH'].split(':'):
             p = py.path.local(x).join(name)
@@ -413,7 +413,9 @@
     #special class constructors for local filesystem paths
     #"""
     def get_temproot(cls):
-        """ return the system's temporary directory (where tempfiles are usually created in)"""
+        """ return the system's temporary directory 
+            (where tempfiles are usually created in)
+        """
         p = cls.mkdtemp()
         try:
             return p.dirpath()
@@ -423,7 +425,7 @@
         
     def mkdtemp(cls):
         """ return a Path object pointing to a fresh new temporary directory
-        (which we created ourself).  
+            (which we created ourself).  
         """
         import tempfile
         tries = 10



More information about the pytest-commit mailing list