mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 07:06:13 +01:00
- use a buffer instead of a memoryview if python version < 2.7
(forgot to remove this code in commit 034d2e4746
)
This commit is contained in:
parent
034d2e4746
commit
d28cddfede
@ -45,12 +45,6 @@ except ImportError:
|
|||||||
from . import oscerr
|
from . import oscerr
|
||||||
from . import conf
|
from . import conf
|
||||||
|
|
||||||
# python 2.6 don't have memoryview, neither bytes
|
|
||||||
try:
|
|
||||||
memoryview
|
|
||||||
except NameError:
|
|
||||||
memoryview = buffer
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# python 2.6 and python 2.7
|
# python 2.6 and python 2.7
|
||||||
unicode
|
unicode
|
||||||
|
Loading…
Reference in New Issue
Block a user