Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Fix a small bug on default_spec #145

Merged
merged 1 commit into from
Jul 10, 2015
Merged

Conversation

OctavianLee
Copy link
Contributor

Fix the misusing of default_spec with a string format instead of a parameter
Modify the code which is not very pythonic.

  • In gen_init function in thrift.py, default_spec is a parameter not a string.
  • is not None is not a good way of using python.

@OctavianLee
Copy link
Contributor Author

@lxyu @maralla

cls.thrift_spec = thrift_spec

if "default_spec" is not None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont understand why that I change x is not None to x cannot pass the travis-ci @maralla

@OctavianLee
Copy link
Contributor Author

I have changed the code @maralla

@lxyu lxyu changed the title Fix a small bug in thrift.py. Fix a small bug on default_spec Jul 9, 2015
@lxyu
Copy link
Contributor

lxyu commented Jul 10, 2015

May you please rebase the three commits to one commit?

…rameter and modify some code which is not pythonic.
@OctavianLee
Copy link
Contributor Author

I've already done. @lxyu

lxyu added a commit that referenced this pull request Jul 10, 2015
Fix a small bug on default_spec
@lxyu lxyu merged commit 2b7c527 into Thriftpy:develop Jul 10, 2015
@lxyu
Copy link
Contributor

lxyu commented Jul 10, 2015

👍 Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants