~ev/zeitgeist/python3

« back to all changes in this revision

Viewing changes to tools/development/cairoplot.py

  • Committer: Evan Dandrea
  • Date: 2012-06-13 16:57:35 UTC
  • Revision ID: evan.dandrea@canonical.com-20120613165735-dyylh0425riv3cla
Be more clear in the Python3 conditionals.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
import random
40
40
from series import Series, Group, Data
41
41
import collections
 
42
import sys
42
43
 
43
 
if bytes is not str:
 
44
if sys.version >= '3':
44
45
    # Python 3.
45
46
    unicode = str
46
47
    long = int