Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
toolbox
WindEnergyToolbox
Commits
d380d5d8
There was a problem fetching the pipeline summary.
Commit
d380d5d8
authored
8 years ago
by
mads
Browse files
Options
Downloads
Patches
Plain Diff
added unix_filename(filename)
parent
2a71a903
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wetb/hawc2/htc_file.py
+2
-2
2 additions, 2 deletions
wetb/hawc2/htc_file.py
with
2 additions
and
2 deletions
wetb/hawc2/htc_file.py
+
2
−
2
View file @
d380d5d8
...
@@ -13,7 +13,7 @@ from __future__ import absolute_import
...
@@ -13,7 +13,7 @@ from __future__ import absolute_import
from
io
import
open
from
io
import
open
from
builtins
import
str
from
builtins
import
str
from
future
import
standard_library
from
future
import
standard_library
from
wetb.utils.process_exec
import
pexec
from
wetb.utils.process_exec
import
pexec
,
unix_filename
standard_library
.
install_aliases
()
standard_library
.
install_aliases
()
from
collections
import
OrderedDict
from
collections
import
OrderedDict
...
@@ -69,7 +69,7 @@ class HTCFile(HTCContents, HTCDefaults):
...
@@ -69,7 +69,7 @@ class HTCFile(HTCContents, HTCDefaults):
def
readfilelines
(
self
,
filename
):
def
readfilelines
(
self
,
filename
):
with
open
(
filename
,
encoding
=
'
cp1252
'
)
as
fid
:
with
open
(
unix_
filename
(
filename
)
,
encoding
=
'
cp1252
'
)
as
fid
:
lines
=
list
(
fid
.
readlines
())
lines
=
list
(
fid
.
readlines
())
if
lines
[
0
].
encode
().
startswith
(
b
'
\xc3\xaf\xc2\xbb\xc2\xbf
'
):
if
lines
[
0
].
encode
().
startswith
(
b
'
\xc3\xaf\xc2\xbb\xc2\xbf
'
):
lines
[
0
]
=
lines
[
0
][
3
:]
lines
[
0
]
=
lines
[
0
][
3
:]
...
...
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