[py-svn] r9230 - in py/dist/py/path: local svn
hpk at codespeak.net
hpk at codespeak.net
Tue Feb 15 11:27:24 CET 2005
Author: hpk
Date: Tue Feb 15 11:27:24 2005
New Revision: 9230
Modified:
py/dist/py/path/local/local.py
py/dist/py/path/svn/svncommon.py
py/dist/py/path/svn/wccommand.py
Log:
some more slight cleanups found through pychecker
Modified: py/dist/py/path/local/local.py
==============================================================================
--- py/dist/py/path/local/local.py (original)
+++ py/dist/py/path/local/local.py Tue Feb 15 11:27:24 2005
@@ -380,7 +380,7 @@
stdout, stderr,)
return stdout
- def sysfind(self, name, checker=None):
+ def sysfind(cls, name, checker=None):
""" 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. If a binary
@@ -425,7 +425,7 @@
dpath = cls(tempfile.mktemp())
try:
dpath.mkdir()
- except path.FileExists:
+ except py.path.FileExists:
continue
return dpath
raise py.error.ENOENT(dpath, "could not create tempdir, %d tries" % tries)
Modified: py/dist/py/path/svn/svncommon.py
==============================================================================
--- py/dist/py/path/svn/svncommon.py (original)
+++ py/dist/py/path/svn/svncommon.py Tue Feb 15 11:27:24 2005
@@ -3,7 +3,6 @@
"""
import os, sys, time, re
import py
-from py import path, process
from py.__impl__.path import common
#_______________________________________________________________
Modified: py/dist/py/path/svn/wccommand.py
==============================================================================
--- py/dist/py/path/svn/wccommand.py (original)
+++ py/dist/py/path/svn/wccommand.py Tue Feb 15 11:27:24 2005
@@ -131,6 +131,7 @@
ignored and considered always true (because of
underlying svn semantics.
"""
+ assert rec, "svn cannot remove non-recursively"
flags = []
if force:
flags.append('--force')
More information about the pytest-commit
mailing list