-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minor code cleanup (first attempt) #20
base: master
Are you sure you want to change the base?
Conversation
@@ -1,5 +1,3 @@ | |||
import os | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaning up unused imports in the file
@@ -40,7 +40,7 @@ def test_read_n_chars(self): | |||
|
|||
self.assertEquals(self.reader.read(1), '') | |||
|
|||
def test_read_n_chars(self): | |||
def test_read_n_chars_2(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there were 2 tests with the same name, separating them as test_*_1
& test_*_2
@@ -30,7 +30,7 @@ def test_read(self): | |||
for index, x in enumerate(lines.split('\n')): | |||
self.assertEquals(x, str(index)) | |||
|
|||
def test_read_n_chars(self): | |||
def test_read_n_chars_1(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there were 2 tests with the same name, separating them as test_*_1
& test_*_2
@@ -3,7 +3,6 @@ | |||
import boto.s3 | |||
import boto.s3.connection | |||
import boto.provider | |||
import zipfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaning up unused imports in the file
@@ -96,7 +93,7 @@ def readline(self, limit=None): | |||
|
|||
return line | |||
|
|||
def readlines(self, sizehint=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaning up because : sizehint
is unused
@@ -87,7 +84,7 @@ def readline(self, limit=None): | |||
else: | |||
line += new_data | |||
|
|||
if limit > 0 and len(line) == limit: | |||
if 0 < limit == len(line): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shortening the chained comparison
problem
|
||
# IDE | ||
.idea | ||
.idea/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i use pycharm
for python work, just thought its good to have these in the .gitignore
to avoid idea
folder from getting checked in
@TheDataChef @jeffmagnusson @drudd (pulled this list from frequent & recent committers to this repo)
first attempt at a minor code cleanup PR, have left comments on why I have removed / edited directly on the diffs to make it easier for you to read.