Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chenhao Ma
core
Commits
ba0f2a2b
Commit
ba0f2a2b
authored
8 years ago
by
Nathaniel Kofalt
Browse files
Options
Downloads
Patches
Plain Diff
Resolve unused import
parent
8d0eb1f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/handlers/resolvehandler.py
+0
-1
0 additions, 1 deletion
api/handlers/resolvehandler.py
api/resolver.py
+1
-5
1 addition, 5 deletions
api/resolver.py
with
1 addition
and
6 deletions
api/handlers/resolvehandler.py
+
0
−
1
View file @
ba0f2a2b
...
...
@@ -3,7 +3,6 @@ API request handlers for the jobs module
"""
from
..
import
base
from
..
import
config
from
..resolver
import
Resolver
class
ResolveHandler
(
base
.
RequestHandler
):
...
...
This diff is collapsed.
Click to expand it.
api/resolver.py
+
1
−
5
View file @
ba0f2a2b
...
...
@@ -3,7 +3,6 @@ Resolve an ambiguous path through the data hierarchy.
"""
from
.
import
config
from
.
import
util
class
Node
(
object
):
...
...
@@ -68,9 +67,6 @@ def _get_docs(table, label, match):
return
results
class
CollectionsLiteralNode
(
Node
):
pass
class
FileNode
(
Node
):
@staticmethod
def
get_children
(
parent
):
...
...
@@ -167,7 +163,7 @@ class Resolver(object):
"""
@staticmethod
def
resolve
(
path
,
uid
=
None
):
def
resolve
(
path
):
if
not
isinstance
(
path
,
list
):
raise
Exception
(
"
Path must be an array of strings
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment