Skip to content

Commit 29f3891

Browse files
author
Bruno da Silva de Oliveira
committed
- Generates the unique number for UniqueInt using the hash of the filename
[SVN r22329]
1 parent 7b602ef commit 29f3891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyste/src/Pyste/EnumExporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def Export(self, codeunit, exported_names):
3232
full_name = self.enum.FullName()
3333
unnamed_enum = False
3434
if rename.startswith('$_') or rename.startswith('._'):
35-
unique_number = int(rename[2:])
35+
unique_number = hash(self.info.include)
3636
unnamed_enum = True
3737
self.ExportUniqueInt(codeunit)
3838
full_name = namespaces.pyste + 'UniqueInt<%d>' % unique_number

0 commit comments

Comments
 (0)