[Biopython-dev] Notification: incoming/83
    biopython-bugs at bioperl.org 
    biopython-bugs at bioperl.org
       
    Wed Aug 21 04:19:48 EDT 2002
    
    
  
JitterBug notification
new message incoming/83
Message summary for PR#83
	From: wart at tepkom.ru
	Subject: sequtils.py gives warning under Python 2.2
	Date: Wed, 21 Aug 2002 04:19:47 -0400
	0 replies 	0 followups
====> ORIGINAL MESSAGE FOLLOWS <====
>From wart at tepkom.ru Wed Aug 21 04:19:47 2002
Received: from localhost (localhost [127.0.0.1])
	by pw600a.bioperl.org (8.12.2/8.12.2) with ESMTP id g7L8JlIn007790
	for <biopython-bugs at pw600a.bioperl.org>; Wed, 21 Aug 2002 04:19:47 -0400
Date: Wed, 21 Aug 2002 04:19:47 -0400
Message-Id: <200208210819.g7L8JlIn007790 at pw600a.bioperl.org>
From: wart at tepkom.ru
To: biopython-bugs at bioperl.org
Subject: sequtils.py gives warning under Python 2.2
Full_Name: Wartan Hachaturow
Module: Bio/sequtils.py
Version: 1.00a4
OS: Debian GNU/Linux
Submission from: local.eye.spbu.ru (195.19.226.65)
sequtils.py:208: SyntaxWarning: import * only allowed at module level
  def xGC_skew(seq, window = 1000, zoom = 100,
This only happens under python 2.2.
The patch is simple ;)
--- ./sequtils.py.orig  2002-08-21 12:18:11.000000000 +0400
+++ ./sequtils.py       2002-08-21 12:18:24.000000000 +0400
@@ -209,7 +209,7 @@
                          r = 300, px = 100, py = 100):
    " calculates and plots normal and accumulated GC skew (GRAPHICS !!!) "
    
-   from Tkinter import *
+   from Tkinter import Scrollbar, Canvas
    from math import pi, sin, cos, log
 
    yscroll = Scrollbar(orient = VERTICAL)
    
    
More information about the Biopython-dev
mailing list