fixed formatting and clean up for tables #98
Merged
Conversation
Closed
@@ -1796,19 +1795,18 @@ def browse(self, wait=True, tempname="/tmp/seltable"): | |||
os.system('casabrowser ' + self.name() + waitstr1) | |||
elif len(tempname) > 0: | |||
six.print_(" making a persistent copy in table " + tempname) | |||
tx = self.copy(tempname) | |||
tx = 0 |
tammojan
Jun 15, 2017
Contributor
Are you sure those lines can go?
Are you sure those lines can go?
shibasisp
Jun 16, 2017
Author
Contributor
tx
is a local variable and I don't see anywhere else in the method, it is being used. Moreover, tx
is assigned 0 immediately after it has been assigned self.copy(tempname)
which makes the assignment of self.copy(tempname)
irrelevant .Its value won't change dynamically, so,I removed it.
tx
is a local variable and I don't see anywhere else in the method, it is being used. Moreover, tx
is assigned 0 immediately after it has been assigned self.copy(tempname)
which makes the assignment of self.copy(tempname)
irrelevant .Its value won't change dynamically, so,I removed it.
tammojan
Jun 16, 2017
Contributor
self.copy
has side effects (namely it creates a new file). So please do not remove the line. I think replacing these two lines with just
self.copy(tempname)
would be ok, since indeed the return value is not used.
self.copy
has side effects (namely it creates a new file). So please do not remove the line. I think replacing these two lines with just
self.copy(tempname)
would be ok, since indeed the return value is not used.
gervandiepen
Jun 19, 2017
Contributor
I think the changes are fine and can be merged. Tammo, do you do that?
I think the changes are fine and can be merged. Tammo, do you do that?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
No description provided.