Skip to content

Commit

Permalink
Cleans up formatting and adds requirements.txt file.
Browse files Browse the repository at this point in the history
- requirements.txt file just contains '.' indicating to use setup.py
- whitespace cleanup

Copybara generated commit for Python Fire.

PiperOrigin-RevId: 149431484
Change-Id: I6fb5413ba2c9d5eed654d6710f8cc756180e90dc
Reviewed-on: https://team-review.git.corp.google.com/63905
Reviewed-by: David Bieber <[email protected]>
  • Loading branch information
dbieber committed Mar 7, 2017
1 parent 59d9095 commit 8e29478
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions fire/completion_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from __future__ import division
from __future__ import print_function



from fire import completion
from fire import test_components as tc

Expand Down
3 changes: 1 addition & 2 deletions fire/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def _PrintResult(component_trace, verbose=False):
# and move serialization to it's own module.
result = component_trace.GetResult()


if isinstance(result, (list, set, types.GeneratorType)):
for i in result:
print(_OneLineResult(i))
Expand Down Expand Up @@ -195,7 +194,7 @@ def _DictAsString(result, verbose=False):
"""
if not result:
return '{}'

longest_key = max(
len(str(key)) for key in result.keys()
if _ComponentVisible(key, verbose)
Expand Down
1 change: 1 addition & 0 deletions fire/test_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def sum(self, alpha=0, beta=0):
def identity(self, alpha, beta='0'):
return alpha, beta


class Annotations(object):

def double(self, count=0):
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.

0 comments on commit 8e29478

Please sign in to comment.