Skip to content
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

locate for all partitions #68

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

locate for all partitions #68

wants to merge 1 commit into from

Conversation

Maxqia
Copy link
Contributor

@Maxqia Maxqia commented Jan 11, 2020

This is related to #35.
I wrote this a long time ago, and I haven't tested it after rebasing it.
I'd like to post it publicly though for your consideration.

Comment on lines +195 to +203
part = check_valid_part(i, parts, shorthands)
if part is not None:
results = utils.locate(part, text)
for node, path in results:
desc = (
' [GHOST]' if node.is_ghost else
' [DELETED]' if node.is_deleted else ''
)
print "partition %s [%s]: %s%s" % (i, node.index, path, desc)
Copy link
Owner

Choose a reason for hiding this comment

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

I would avoid repetition, if possible. Could you consider moving the common code to a function or similar?

@mirh
Copy link

mirh commented Aug 31, 2022

Needs rebasing (and some little tweak for py3)

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.

None yet

3 participants