Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
04189564
Commit
04189564
authored
Apr 14, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update script
parent
707d80a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
script/code/remove_permission.py
+5
-5
No files found.
script/code/remove_permission.py
View file @
04189564
...
@@ -12,13 +12,14 @@ with open(path, "r", encoding="utf-8") as f:
...
@@ -12,13 +12,14 @@ with open(path, "r", encoding="utf-8") as f:
with
open
(
path
,
"w"
,
encoding
=
"utf-8"
)
as
f_w
:
with
open
(
path
,
"w"
,
encoding
=
"utf-8"
)
as
f_w
:
isPermissionDoce
=
False
isPermissionDoce
=
False
isFinished
=
False
;
for
line
in
lines
:
for
line
in
lines
:
if
"<uses-permission"
in
line
:
if
"<uses-permission"
in
line
:
isPermissionDoce
=
True
isPermissionDoce
=
True
if
"<application"
in
line
:
if
"<application"
in
line
:
isPermissionDoce
=
False
isFinished
=
True
break
if
isPermissionDoce
and
not
isFinished
:
line
=
"<!-- "
+
line
.
replace
(
"
\n
"
,
" -->
\n
"
)
if
"org.gradle.jvmargs"
in
line
:
line
=
"<!-- "
+
line
+
" -->"
f_w
.
write
(
line
)
f_w
.
write
(
line
)
\ No newline at end of file
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