[Buildbot-commits] buildbot/buildbot/steps source.py,1.10,1.11

Brian Warner warner at users.sourceforge.net
Sat Mar 22 22:15:02 UTC 2008


Update of /cvsroot/buildbot/buildbot/buildbot/steps
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20511/buildbot/steps

Modified Files:
	source.py 
Log Message:
[project @ source.py: hush pyflakes variable-shadows-import warning]

Original author: warner at lothar.com
Date: 2008-03-22 22:04:35+00:00

Index: source.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/steps/source.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- source.py	22 Nov 2007 01:04:34 -0000	1.10
+++ source.py	22 Mar 2008 22:15:00 -0000	1.11
@@ -1,6 +1,6 @@
 # -*- test-case-name: buildbot.test.test_vc -*-
 
-import warnings
+from warnings import warn
 from email.Utils import formatdate
 from twisted.python import log
 from buildbot.process.buildstep import LoggingBuildStep, LoggedRemoteCommand
@@ -376,8 +376,7 @@
 
         if not kwargs.has_key('workdir') and directory is not None:
             # deal with old configs
-            warnings.warn("Please use workdir=, not directory=",
-                          DeprecationWarning)
+            warn("Please use workdir=, not directory=", DeprecationWarning)
             kwargs['workdir'] = directory
 
         self.svnurl = svnurl





More information about the Commits mailing list