Skip to content

Commit

Permalink
autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed May 18, 2012
1 parent 029d489 commit 80a6517
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions codegenloader/base.py
Expand Up @@ -5,6 +5,7 @@

_counter = itertools.count()


class CodeGenLoader(object):
"""Abstract base class for code generation import hooks.
Expand Down
1 change: 1 addition & 0 deletions codegenloader/protobuf.py
Expand Up @@ -5,6 +5,7 @@
import tempfile
from codegenloader.base import CodeGenLoader


class ProtobufLoader(CodeGenLoader):
def protoname(self, relname):
assert relname.endswith("_pb2")
Expand Down
1 change: 1 addition & 0 deletions codegenloader/test/protobuf_test.py
@@ -1,6 +1,7 @@
import unittest
from google.protobuf.message import Message


class ProtobufTest(unittest.TestCase):
def test_simple_import(self):
from codegenloader.test.proto.simple_pb2 import Simple
Expand Down
1 change: 1 addition & 0 deletions codegenloader/test/runtests.py
Expand Up @@ -7,6 +7,7 @@
'codegenloader.test.protobuf_test',
]


def all():
return unittest.defaultTestLoader.loadTestsFromNames(TEST_MODULES)

Expand Down
1 change: 1 addition & 0 deletions codegenloader/test/thrift_test.py
@@ -1,5 +1,6 @@
import unittest


class ThriftTest(unittest.TestCase):
def test_simple_import(self):
from codegenloader.test.thriftgen.simple.ttypes import Simple
Expand Down
1 change: 1 addition & 0 deletions codegenloader/thrift.py
Expand Up @@ -6,6 +6,7 @@
import tempfile
from codegenloader.base import CodeGenLoader


class ThriftLoader(CodeGenLoader):
def thriftname(self, relname):
return os.path.abspath(os.path.join(self.basedir, relname + '.thrift'))
Expand Down

0 comments on commit 80a6517

Please sign in to comment.