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

Commit48ec9e0

Browse files
fix: undefined name errors
Discovered that there were some undefined names.
1 parentd90be1e commit48ec9e0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎gitlab/v4/objects/ldap.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ def list(self, **kwargs):
5050
ifisinstance(obj,list):
5151
return [self._obj_cls(self,item)foriteminobj]
5252
else:
53-
returnbase.RESTObjectList(self,self._obj_cls,obj)
53+
returnRESTObjectList(self,self._obj_cls,obj)

‎gitlab/v4/objects/projects.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
from .notification_settingsimportProjectNotificationSettingsManager
3232
from .packagesimportProjectPackageManager
3333
from .pagesimportProjectPagesDomainManager
34-
from .pipelinesimportProjectPipelineManager,ProjectPipelineScheduleManager
34+
from .pipelinesimport (
35+
ProjectPipeline,
36+
ProjectPipelineManager,
37+
ProjectPipelineScheduleManager,
38+
)
3539
from .push_rulesimportProjectPushRulesManager
3640
from .releasesimportProjectReleaseManager
3741
from .runnersimportProjectRunnerManager
@@ -556,10 +560,10 @@ def upload(self, filename, filedata=None, filepath=None, **kwargs):
556560
* ``markdown`` - Markdown for the uploaded file
557561
"""
558562
iffilepathisNoneandfiledataisNone:
559-
raiseGitlabUploadError("No file contents or path specified")
563+
raiseexc.GitlabUploadError("No file contents or path specified")
560564

561565
iffiledataisnotNoneandfilepathisnotNone:
562-
raiseGitlabUploadError("File contents and file path specified")
566+
raiseexc.GitlabUploadError("File contents and file path specified")
563567

564568
iffilepathisnotNone:
565569
withopen(filepath,"rb")asf:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp