Skip to content

Commit

Permalink
Merge pull request jiaaro#516 from shadchin/patch-1
Browse files Browse the repository at this point in the history
Fix import for Python 3.9+
  • Loading branch information
GreyAlien502 committed Jan 18, 2021
2 parents 791ba4e + 64c6665 commit 6046628
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ python:
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
- "3.9"
- "pypy2"
- "pypy3"
jobs:
allow_failures:
- python: "3.9-dev"
script:
- python test/test.py
after_script:
Expand Down
5 changes: 4 additions & 1 deletion pydub/pyaudioop.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
from builtins import min as builtin_min
import math
import struct
from fractions import gcd
try:
from fractions import gcd
except ImportError: # Python 3.9+
from math import gcd
from ctypes import create_string_buffer


Expand Down

0 comments on commit 6046628

Please sign in to comment.