Changeset 3413 for pykota/trunk/pykota/pdfutils.py
- Timestamp:
- 09/27/08 22:02:37 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/pdfutils.py
r3411 r3413 8 8 # the Free Software Foundation, either version 3 of the License, or 9 9 # (at your option) any later version. 10 # 10 # 11 11 # This program is distributed in the hope that it will be useful, 12 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 14 # GNU General Public License for more details. 15 # 15 # 16 16 # You should have received a copy of the GNU General Public License 17 17 # along with this program. If not, see <http://www.gnu.org/licenses/>. … … 26 26 try : 27 27 import reportlab.lib.pagesizes as sizes 28 except ImportError : 28 except ImportError : 29 29 pass 30 else : 30 else : 31 31 try : 32 return getattr(sizes, pgsize.upper(), getattr(sizes, 33 pgsize.lower(), 32 return getattr(sizes, pgsize.upper(), getattr(sizes, 33 pgsize.lower(), 34 34 None)) 35 except UnicodeError : 35 except UnicodeError : 36 36 pass 37 return None 37 return None