Skip to content

Commit 8e29478

Browse files
committed
Cleans up formatting and adds requirements.txt file.
- 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]>
1 parent 59d9095 commit 8e29478

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

fire/completion_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
from __future__ import division
1717
from __future__ import print_function
1818

19-
20-
2119
from fire import completion
2220
from fire import test_components as tc
2321

fire/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def _PrintResult(component_trace, verbose=False):
167167
# and move serialization to it's own module.
168168
result = component_trace.GetResult()
169169

170-
171170
if isinstance(result, (list, set, types.GeneratorType)):
172171
for i in result:
173172
print(_OneLineResult(i))
@@ -195,7 +194,7 @@ def _DictAsString(result, verbose=False):
195194
"""
196195
if not result:
197196
return '{}'
198-
197+
199198
longest_key = max(
200199
len(str(key)) for key in result.keys()
201200
if _ComponentVisible(key, verbose)

fire/test_components.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def sum(self, alpha=0, beta=0):
7575
def identity(self, alpha, beta='0'):
7676
return alpha, beta
7777

78+
7879
class Annotations(object):
7980

8081
def double(self, count=0):

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.

0 commit comments

Comments
 (0)