Debian Codegraph @

debian/patches/remove-six.patch

raw
1 --- a/django_shortuuidfield.egg-info/requires.txt
2 +++ b/django_shortuuidfield.egg-info/requires.txt
3 @@ -1,3 +1,2 @@
4 django
5 shortuuid
6 -six
7 \ No newline at end of file
8 --- a/setup.py
9 +++ b/setup.py
10 @@ -11,7 +11,6 @@
11 install_requires=[
12 'django',
13 'shortuuid',
14 - 'six'
15 ],
16 packages=find_packages(),
17 include_package_data=True,
18 --- a/shortuuidfield/fields.py
19 +++ b/shortuuidfield/fields.py
20 @@ -1,5 +1,4 @@
21 import shortuuid
22 -import six
23 import sys
24 from django.db.models import CharField
25
26 @@ -32,7 +31,7 @@
27 value = super(ShortUUIDField, self).pre_save(model_instance, add)
28 if self.auto and not value:
29 # Assign a new value for this attribute if required.
30 - value = six.text_type(shortuuid.uuid())
31 + value = str(shortuuid.uuid())
32 setattr(model_instance, self.attname, value)
33 return value
34