Skip to content

Remove unused imports #180

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

katesalazar
Copy link
Contributor

.gitignore: Ignore PyCharm metadata.
clang-format.py: Python 3.
list-pulls.py: Remove unused import.
termlib/attr.py: Explicit class methods.
termlib/tableprinter.py: Adapts signature change.
treehash512.py: Remove unused imports.

.gitignore Outdated
@@ -1 +1,2 @@
__pycache__
.idea/
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be in your local global .gitignore, not added here.

clang-format.py Outdated
for word in (['E.g:', argv[0]] + example_args):
print word,
print ''
print(word,)
Copy link
Member

@laanwj laanwj Mar 27, 2025

Choose a reason for hiding this comment

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

This doesn't do anything in python 3. If the point is to print without a newline but a space after use

print(word, end=' ')

clang-format.py Outdated
print word,
print ''
print(word,)
print('')
Copy link
Member

Choose a reason for hiding this comment

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

print() works too to print a newline

@fanquake
Copy link
Member

Why are you changing the permissions of clang-format.py?

@katesalazar
Copy link
Contributor Author

katesalazar commented Mar 28, 2025 via email

list-pulls.py: Remove unused import.
termlib/attr.py: Explicit class methods.
termlib/tableprinter.py: Adapts signature change.
treehash512.py: Remove unused imports.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants