Skip to content

Commit

Permalink
Master depends on 2.6, hence no "future with_statement"
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sobolev committed Jun 23, 2015
1 parent ab3669f commit fcb70bf
Show file tree
Hide file tree
Showing 44 changed files with 7 additions and 141 deletions.
1 change: 0 additions & 1 deletion master/buildbot/__init__.py
Expand Up @@ -17,7 +17,6 @@
#
# We can't put this method in utility modules, because they import dependancy packages
#
from __future__ import with_statement
from subprocess import Popen, PIPE, STDOUT
import os
import re
Expand Down
6 changes: 2 additions & 4 deletions master/buildbot/buildslave/ec2.py
Expand Up @@ -12,11 +12,9 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Portions Copyright Buildbot Team Members

from __future__ import with_statement
# Portions Copyright Canonical Ltd. 2009

"""A LatentSlave that uses EC2 to instantiate the slaves on demand.
"""
A LatentSlave that uses EC2 to instantiate the slaves on demand.
Tested with Python boto 1.5c
"""
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/changes/changes.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import time

from buildbot.util import datetime2epoch
Expand Down
5 changes: 0 additions & 5 deletions master/buildbot/changes/svnpoller.py
Expand Up @@ -12,14 +12,9 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement


# Based on the work of Dave Peticolas for the P4poll
# Changed to svn (using xml.dom.minidom) by Niklaus Giger
# Hacked beyond recognition by Brian Warner

from twisted.internet import defer
from twisted.internet import utils
from twisted.python import log
Expand Down
4 changes: 0 additions & 4 deletions master/buildbot/clients/tryclient.py
Expand Up @@ -12,10 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement


import os
import random
import re
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/config.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import re
import sys
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/db/migrate/versions/001_initial.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import sqlalchemy as sa

Expand Down
4 changes: 0 additions & 4 deletions master/buildbot/manhole.py
Expand Up @@ -12,10 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement


import base64
import binascii
import os
Expand Down
2 changes: 0 additions & 2 deletions master/buildbot/process/metrics.py
Expand Up @@ -12,8 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement
r"""
Buildbot metrics module
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/scripts/base.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import copy
import os
import stat
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/scripts/create_master.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import jinja2
import os

Expand Down
4 changes: 0 additions & 4 deletions master/buildbot/scripts/reconfig.py
Expand Up @@ -12,10 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement


import os
import platform
import signal
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/scripts/restart.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

from buildbot.scripts import base
from buildbot.scripts import start
from buildbot.scripts import stop
Expand Down
5 changes: 1 addition & 4 deletions master/buildbot/scripts/runner.py
Expand Up @@ -12,15 +12,12 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

#
# N.B.: don't import anything that might pull in a reactor yet. Some of our
# subcommands want to load modules that need the gtk reactor.
#
# Also don't forget to mirror your changes on command-line options in manual
# pages and texinfo documentation.

import sqlalchemy as sa
import sys

Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/scripts/stop.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import errno
import os
import signal
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/scripts/tryserver.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import sys
import time
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/scripts/upgrade_master.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import sys
import traceback
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/status/build.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import re
import shutil
Expand Down
4 changes: 0 additions & 4 deletions master/buildbot/status/builder.py
Expand Up @@ -12,10 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement


import itertools
import os
import re
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/status/master.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import urllib

Expand Down
4 changes: 0 additions & 4 deletions master/buildbot/status/persistent_queue.py
Expand Up @@ -12,10 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement


import os

from buildbot.util import pickle
Expand Down
10 changes: 4 additions & 6 deletions master/buildbot/status/status_push.py
Expand Up @@ -12,13 +12,11 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members
"""
Push events to an abstract receiver.
from __future__ import with_statement


"""Push events to an abstract receiver.
Implements the HTTP receiver."""
Implements the HTTP receiver.
"""

import datetime
import os
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/steps/package/rpm/rpmbuild.py
Expand Up @@ -14,9 +14,6 @@
# Portions Copyright Buildbot Team Members
# Portions Copyright Dan Radez <dradez+buildbot@redhat.com>
# Portions Copyright Steve 'Ashcrow' Milner <smilner+buildbot@redhat.com>

from __future__ import with_statement

import os

from buildbot import config
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/integration/test_configs.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os

from buildbot import config
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/integration/test_upgrade.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import migrate
import migrate.versioning.api
import os
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_changes_mail.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os

from buildbot.changes import mail
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_changes_svnpoller.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import xml.dom.minidom

Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_clients_tryclient.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

from twisted.trial import unittest

from buildbot.clients import tryclient
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_config.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import __builtin__
import mock
import os
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_schedulers_trysched.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import cStringIO as StringIO
import mock
import os
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_scripts_base.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import cStringIO
import os
import string
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_scripts_checkconfig.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import cStringIO
import mock
import os
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_scripts_create_master.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import mock
import os

Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_scripts_restart.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os

from buildbot.scripts import restart
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_scripts_runner.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import cStringIO
import getpass
import mock
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_scripts_start.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import sys
import time
Expand Down
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_scripts_stop.py
Expand Up @@ -12,9 +12,6 @@
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright Buildbot Team Members

from __future__ import with_statement

import os
import signal
import time
Expand Down

0 comments on commit fcb70bf

Please sign in to comment.