GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #901 from python-gitlab/fix/non-auth · ConorNevin/python-gitlab@f4b2927

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • gitlab
    • __init__.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎gitlab/__init__.py‎

Copy file name to clipboardExpand all lines: gitlab/__init__.py
+7-8Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from gitlab import utils # noqa
3232

3333
__title__ = "python-gitlab"
34-
__version__ = "1.12.0"
34+
__version__ = "1.12.1"
3535
__author__ = "Gauvain Pocentek"
3636
__email__ = "[email protected]"
3737
__license__ = "LGPL3"
@@ -350,13 +350,12 @@ def _construct_url(self, id_, obj, parameters, action=None):
350350
return url
351351

352352
def _set_auth_info(self):
353-
if (
354-
sum(
355-
bool(arg)
356-
for arg in [self.private_token, self.oauth_token, self.job_token]
357-
)
358-
!= 1
359-
):
353+
tokens = [
354+
token
355+
for token in [self.private_token, self.oauth_token, self.job_token]
356+
if token
357+
]
358+
if len(tokens) > 1:
360359
raise ValueError(
361360
"Only one of private_token, oauth_token or job_token should "
362361
"be defined"

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.