Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
26c1bc45
Commit
26c1bc45
authored
Aug 07, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The method search_for_package is not used in the program
parent
c5a4285b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
manifest_parser.py
hdlmake/manifest_parser.py
+0
-21
No files found.
hdlmake/manifest_parser.py
View file @
26c1bc45
...
...
@@ -322,24 +322,3 @@ class ManifestParser(ConfigParser):
"""Print the help for the Manifest parser object"""
self
.
help
()
def
search_for_package
(
self
):
"""
Reads a file and looks for package clase. Returns list of packages'
names from the file
"""
import
re
file_aux
=
open
(
self
.
config_file
,
"r"
)
try
:
text
=
file_aux
.
readlines
()
except
UnicodeDecodeError
:
return
[]
package_pattern
=
re
.
compile
(
"^[
\t
]*package[
\t
]+([^
\t
]+)[
\t
]+is[
\t
]*$"
)
ret
=
[]
for
line
in
text
:
match_aux
=
re
.
match
(
package_pattern
,
line
)
if
match_aux
is
not
None
:
ret
.
append
(
match_aux
.
group
(
1
))
file_aux
.
close
()
self
.
package
=
ret
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