Skip to content

Commit

Permalink
Merge pull request Make-Magazine#21 from Make-Magazine/unstable
Browse files Browse the repository at this point in the history
Added support for handling both python 2.x and 3.x
  • Loading branch information
nicknormal committed Dec 30, 2014
2 parents 8c94245 + adbbef1 commit 895b8a8
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions PirateRadio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
# Pirate Radio
# Author: Wynter Woods (Make Magazine)

import os
import sys
import subprocess
import configparser
import re
import random
import threading
import time

try: # the following tests for a python3.x module
import configparser
except: # if the module isn't found, we're likely running python2.x and will just trick it into working
import ConfigParser as configparser
finally:
import re
import re
import random
import sys
import os
import threading
import time
import subprocess

fm_process = None
on_off = ["off", "on"]
Expand Down

0 comments on commit 895b8a8

Please sign in to comment.