Skip to content

Commit

Permalink
make StringIO import python 2 and 3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioPeJu committed Jun 23, 2017
1 parent 40218b8 commit eed6444
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions master/buildbot/test/unit/test_www_hooks_bitbucketserver.py
Expand Up @@ -17,7 +17,7 @@
from __future__ import absolute_import
from __future__ import print_function

from StringIO import StringIO
from io import StringIO

from twisted.internet import defer
from twisted.trial import unittest
Expand All @@ -30,7 +30,7 @@

_CT_JSON = 'application/json'

pushJsonPayload = """
pushJsonPayload = u"""
{
"actor": {
"username": "John",
Expand Down Expand Up @@ -85,7 +85,7 @@
}
"""

pullRequestCreatedJsonPayload = """
pullRequestCreatedJsonPayload = u"""
{
"actor": {
"username": "John",
Expand Down Expand Up @@ -190,7 +190,7 @@
}
"""

pullRequestUpdatedJsonPayload = """
pullRequestUpdatedJsonPayload = u"""
{
"actor": {
"username": "John",
Expand Down Expand Up @@ -295,7 +295,7 @@
}
"""

pullRequestRejectedJsonPayload = """
pullRequestRejectedJsonPayload = u"""
{
"actor": {
"username": "John",
Expand Down Expand Up @@ -400,7 +400,7 @@
}
"""

pullRequestFulfilledJsonPayload = """
pullRequestFulfilledJsonPayload = u"""
{
"actor": {
"username": "John",
Expand Down Expand Up @@ -505,7 +505,7 @@
}
"""

deleteTagJsonPayload = """
deleteTagJsonPayload = u"""
{
"actor": {
"username": "John",
Expand Down Expand Up @@ -553,7 +553,7 @@
}
"""

deleteBranchJsonPayload = """
deleteBranchJsonPayload = u"""
{
"actor": {
"username": "John",
Expand Down

0 comments on commit eed6444

Please sign in to comment.