making imports fit my style convention, actually importing os in the module that needs it
This commit is contained in:
		
							parent
							
								
									91e535978f
								
							
						
					
					
						commit
						26d2e0c294
					
				| @ -14,9 +14,10 @@ | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| from irclib import irclib | ||||
| import re | ||||
| 
 | ||||
| from irclib import irclib | ||||
| 
 | ||||
| # Base class used for creating classes that have real functionality. | ||||
| 
 | ||||
| class Module(object): | ||||
|  | ||||
| @ -14,10 +14,12 @@ | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| from Module import Module | ||||
| from irclib import irclib | ||||
| from ConfigParser import NoOptionError | ||||
| 
 | ||||
| from irclib import irclib | ||||
| 
 | ||||
| from Module import Module | ||||
| 
 | ||||
| # Class that adds a countdown item to the bot | ||||
| 
 | ||||
| class Countdown(Module): | ||||
|  | ||||
| @ -14,11 +14,13 @@ | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| from Module import Module | ||||
| from irclib import irclib | ||||
| import re | ||||
| import random | ||||
| 
 | ||||
| from irclib import irclib | ||||
| 
 | ||||
| from Module import Module | ||||
| 
 | ||||
| # Rolls dice, for RPGs mostly | ||||
| 
 | ||||
| class Dice(Module): | ||||
|  | ||||
| @ -14,9 +14,12 @@ | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| from Module import Module | ||||
| from irclib import irclib | ||||
| from ConfigParser import NoOptionError | ||||
| import os | ||||
| 
 | ||||
| from irclib import irclib | ||||
| 
 | ||||
| from Module import Module | ||||
| 
 | ||||
| # Returns a random fact/quote/whatever from one or more files | ||||
| 
 | ||||
|  | ||||
| @ -14,11 +14,13 @@ | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| from Module import Module | ||||
| from irclib import irclib | ||||
| from urllib2 import urlopen | ||||
| from urllib import urlencode | ||||
| 
 | ||||
| from irclib import irclib | ||||
| 
 | ||||
| from Module import Module | ||||
| 
 | ||||
| # Class that translates text via Google Translate. | ||||
| # | ||||
| # http://code.google.com/apis/ajaxlanguage/documentation/ | ||||
|  | ||||
| @ -15,9 +15,10 @@ | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| from ConfigParser import NoOptionError | ||||
| from Module import Module | ||||
| 
 | ||||
| from irclib import irclib | ||||
| import traceback | ||||
| 
 | ||||
| from Module import Module | ||||
| 
 | ||||
| # All kinds of miscellaneous irc stuff | ||||
| 
 | ||||
| @ -67,7 +68,6 @@ class IrcAdmin(Module): | ||||
|         if whats[0] == 'rehash' and admin_unlocked: | ||||
|             self.rehash() | ||||
|             replystr = 'rehashed modules' | ||||
|             #traceback.print_stack() | ||||
|             if replypath is None: | ||||
|                 return replystr | ||||
|             else: | ||||
|  | ||||
| @ -14,12 +14,14 @@ | ||||
| # You should have received a copy of the GNU General Public License | ||||
| # along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| from Module import Module | ||||
| from irclib import irclib | ||||
| from ConfigParser import NoOptionError | ||||
| 
 | ||||
| from irclib import irclib | ||||
| from datetime import datetime | ||||
| from dateutil.tz import * | ||||
| 
 | ||||
| from Module import Module | ||||
| 
 | ||||
| # Keeps track of when people say things in public channels, and reports on when | ||||
| # they last said something. | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user