Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix typo in tutorial#115

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
lqez wants to merge1 commit intogitpython-developers:0.3fromlqez:0.3
Closed

Fix typo in tutorial#115

lqez wants to merge1 commit intogitpython-developers:0.3fromlqez:0.3

Conversation

lqez
Copy link

I fixed typo and wrong representation of tree mode in tutorial.
htc is a obvious typo ofhct andhct.mode is an octal value, so it must be 16384, not 040000 without%06o.

040000
'%o' % htc.blobs[0].mode # blobs have a specific mode though comparable to a standard linux fs
hct.mode # trees have the mode of a linux directory
16384

Choose a reason for hiding this comment

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

To respect the original example, this change is more suitable.

oct(hct.mode)'040000'oct(hct.blobs[0].mode)'0100644'

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. I didn't knowoct().

@lqez
Copy link
Author

I agree with@Kroisse.

@lqezlqez closed thisJul 30, 2013
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@lqez@Kroisse

[8]ページ先頭

©2009-2025 Movatter.jp