Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
101b2e32
Commit
101b2e32
authored
Oct 22, 2013
by
Tiago Peixoto
Browse files
Fix unicode issue with python 2.7
parent
fc0eb37f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph_tool/run_action/inline.py
View file @
101b2e32
...
...
@@ -60,7 +60,10 @@ while len(incs) > 0:
if
os
.
path
.
isdir
(
inc
):
incs
+=
glob
.
glob
(
inc
+
"/*"
)
else
:
headers_hash
=
hashlib
.
md5
((
headers_hash
+
open
(
inc
).
read
()).
encode
(
'utf-8'
)).
hexdigest
()
try
:
headers_hash
=
hashlib
.
md5
((
headers_hash
+
open
(
inc
).
read
()).
encode
(
'utf-8'
)).
hexdigest
()
except
UnicodeDecodeError
:
headers_hash
=
hashlib
.
md5
(
headers_hash
+
open
(
inc
).
read
()).
hexdigest
()
# property map types
props
=
"""
...
...
Tiago Peixoto
@count0
mentioned in issue
#120 (closed)
·
Aug 06, 2014
mentioned in issue
#120 (closed)
mentioned in issue #120
Toggle commit list
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