Skip to content

Commit 1d1b346

Browse files
committed
Add more fixes for directory cache and python3
1 parent 241fc8d commit 1d1b346

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygccxml/parser/directory_cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,13 @@ def _create_config_signature(config):
379379
m = hashlib.sha1()
380380
m.update(config.working_directory.encode("utf-8"))
381381
for p in config.include_paths:
382-
m.update(p)
382+
m.update(p.encode("utf-8"))
383383
for p in config.define_symbols:
384-
m.update(p)
384+
m.update(p.encode("utf-8"))
385385
for p in config.undefine_symbols:
386-
m.update(p)
386+
m.update(p.encode("utf-8"))
387387
for p in config.cflags:
388-
m.update(p)
388+
m.update(p.encode("utf-8"))
389389
return m.digest()
390390

391391

0 commit comments

Comments
 (0)