~ubuntu-branches/ubuntu/natty/python3.1/natty-security

« back to all changes in this revision

Viewing changes to Lib/idlelib/EditorWindow.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-07-23 18:52:17 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090723185217-orj9vm2mappvz4ze
Tags: 3.1-0ubuntu1
* Python 3.1 final release.
* Update to the 3.1 release branch, 20090723.
* Add explicit build dependency on tk8.5-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    major, minor, micro, level, serial = sys.version_info
30
30
    release = '%s%s' % (major, minor)
31
31
    if micro:
32
 
        release += '%s' % micro
33
 
    if level != 'final':
 
32
        release += '%s' % (micro,)
 
33
    if level == 'candidate':
 
34
        release += 'rc%s' % (serial,)
 
35
    elif level != 'final':
34
36
        release += '%s%s' % (level[0], serial)
35
37
    return release
36
38