~ubuntu-branches/ubuntu/maverick/pygame/maverick

« back to all changes in this revision

Viewing changes to msysio.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-14 17:02:11 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100114170211-21eop2ja7mr9vdcr
Tags: 1.9.1release-0ubuntu1
* New upstream version (lp: #433304)
* debian/control:
  - build-depends on libportmidi-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
import sys
10
10
import os
11
11
 
 
12
__all__ = ['raw_input_', 'print_', 'is_msys']
 
13
 
 
14
# 2.x/3.x compatibility stuff
 
15
try:
 
16
    raw_input
 
17
except NameError:
 
18
    raw_input = input
 
19
 
 
20
# Exported functions
 
21
__all__ = ['raw_input_', 'print_', 'is_msys']
 
22
 
 
23
# 2.x/3.x compatibility stuff
 
24
try:
 
25
    raw_input
 
26
except NameError:
 
27
    raw_input = input
 
28
 
 
29
# Exported functions
12
30
def raw_input_(prompt=None):
13
31
    """Prompt for user input in an MSYS console friendly way"""
14
32
    if prompt is None:
42
60
    try:
43
61
        return os.environ['OSTYPE'] == 'msys'
44
62
    except KeyError:
45
 
        return 0
 
63
        return False