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

add per_page config option#505

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

Merged
gpocentek merged 1 commit intopython-gitlab:masterfromjouve:config_per_page
May 26, 2018
Merged

add per_page config option#505

gpocentek merged 1 commit intopython-gitlab:masterfromjouve:config_per_page
May 26, 2018

Conversation

jouve
Copy link
Contributor

Close#503 .

m_open.return_value = fd
config.GitlabConfigParser('one')
config.GitlabConfigParser('one')
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this duplicated line is useful :) Could you remove it?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I added this to test the change line#97.

Without the fd.seek(0), all calls to config.GitlabConfigParser fail except the 1st one:

# fd.tell() = 0config.GitlabConfigParser('one')# reads fd# fd.tell() = end of fileconfig.GitlabConfigParser('one')# reads nothing because fd is at end of file, so it fail

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, thanks for the explanation.

@gpocentek
Copy link
Contributor

LGTM, can you just drop the extra line (see comment). Thanks!

Copy link
ContributorAuthor

@jouvejouve left a comment

Choose a reason for hiding this comment

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

I'll update the documentation before the merge.

m_open.return_value = fd
config.GitlabConfigParser('one')
config.GitlabConfigParser('one')
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I added this to test the change line#97.

Without the fd.seek(0), all calls to config.GitlabConfigParser fail except the 1st one:

# fd.tell() = 0config.GitlabConfigParser('one')# reads fd# fd.tell() = end of fileconfig.GitlabConfigParser('one')# reads nothing because fd is at end of file, so it fail

@gpocentekgpocentek merged commitd981904 intopython-gitlab:masterMay 26, 2018
@jouvejouve deleted the config_per_page branchJune 7, 2018 21:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpocentekgpocentekgpocentek left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jouve@gpocentek

[8]ページ先頭

©2009-2025 Movatter.jp