Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
e08eccba
Commit
e08eccba
authored
Sep 10, 2018
by
Virgil Grigoras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Satisfy "Codacy/PR Quality Review"
parent
50ded1af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
helper.py
cps/helper.py
+1
-1
web.py
cps/web.py
+0
-2
No files found.
cps/helper.py
View file @
e08eccba
...
@@ -552,7 +552,7 @@ def is_sha1(sha1):
...
@@ -552,7 +552,7 @@ def is_sha1(sha1):
if
len
(
sha1
)
!=
40
:
if
len
(
sha1
)
!=
40
:
return
False
return
False
try
:
try
:
temp
=
int
(
sha1
,
16
)
int
(
sha1
,
16
)
except
ValueError
:
except
ValueError
:
return
False
return
False
return
True
return
True
...
...
cps/web.py
View file @
e08eccba
#!/usr/bin/env python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
builtins
import
OSError
try
:
try
:
from
googleapiclient.errors
import
HttpError
from
googleapiclient.errors
import
HttpError
except
ImportError
:
except
ImportError
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment