Changeset 6db17bd in sasmodels
- Timestamp:
- Oct 26, 2017 9:41:08 AM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- a5a12ca, c11d09f, bebdb87, c69d6d6
- Parents:
- 55d88b4
- git-author:
- Paul Kienzle <pkienzle@…> (10/19/17 15:11:08)
- git-committer:
- Paul Kienzle <pkienzle@…> (10/26/17 09:41:08)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
r30b60d2 r6db17bd 370 370 """ 371 371 # Note: need 0xffffffff&val to force an unsigned 32-bit number 372 try: 373 source = source.encode('utf8') 374 except AttributeError: # bytes has no encode attribute in python 3 375 pass 372 376 return "%08X"%(0xffffffff&crc32(source)) 373 377
Note: See TracChangeset
for help on using the changeset viewer.