|
31 | 31 | from .notification_settingsimportProjectNotificationSettingsManager |
32 | 32 | from .packagesimportProjectPackageManager |
33 | 33 | from .pagesimportProjectPagesDomainManager |
34 | | -from .pipelinesimportProjectPipelineManager,ProjectPipelineScheduleManager |
| 34 | +from .pipelinesimport ( |
| 35 | +ProjectPipeline, |
| 36 | +ProjectPipelineManager, |
| 37 | +ProjectPipelineScheduleManager, |
| 38 | +) |
35 | 39 | from .push_rulesimportProjectPushRulesManager |
36 | 40 | from .releasesimportProjectReleaseManager |
37 | 41 | from .runnersimportProjectRunnerManager |
@@ -556,10 +560,10 @@ def upload(self, filename, filedata=None, filepath=None, **kwargs): |
556 | 560 | * ``markdown`` - Markdown for the uploaded file |
557 | 561 | """ |
558 | 562 | iffilepathisNoneandfiledataisNone: |
559 | | -raiseGitlabUploadError("No file contents or path specified") |
| 563 | +raiseexc.GitlabUploadError("No file contents or path specified") |
560 | 564 |
|
561 | 565 | iffiledataisnotNoneandfilepathisnotNone: |
562 | | -raiseGitlabUploadError("File contents and file path specified") |
| 566 | +raiseexc.GitlabUploadError("File contents and file path specified") |
563 | 567 |
|
564 | 568 | iffilepathisnotNone: |
565 | 569 | withopen(filepath,"rb")asf: |
|