/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/proj.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/proj.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2699 by bernhard, Mon Sep 18 13:59:40 2006 UTC revision 2708 by bernhard, Sun Sep 24 20:01:23 2006 UTC
# Line 35  def _do_we_have_to_work_around_broken_pr Line 35  def _do_we_have_to_work_around_broken_pr
35          proj = BaseProjection(params)          proj = BaseProjection(params)
36          result2 = proj.Forward(1,1)          result2 = proj.Forward(1,1)
37    
38          locale.setlocale(locale.LC_NUMERIC, savedlocale)          try:
39                locale.setlocale(locale.LC_NUMERIC, savedlocale)
40            except:
41                # python under some circumstances (observed 2.3.5-2 Debian Sarge)
42                # does not accept savedlocale directly
43                # deviating from the documentation
44                locale.setlocale(locale.LC_NUMERIC, savedlocale[0])
45          if result1 != result2:          if result1 != result2:
46              return True              return True
47      return False      return False

Legend:
Removed from v.2699  
changed lines
  Added in v.2708

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26