This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomMap(Map): | |
class NewTownEvent(Map.Event): | |
map: CustomMap | |
def onTownFound(map, town, location) -> None: | |
map.api.setTownType(town, AggressiveTown) | |
class NewIndustryEvent(Map.Event): | |
map: CustomMap | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.apps import apps | |
from django.conf import settings | |
from django.core.urlresolvers import RegexURLResolver | |
from importlib import import_module | |
from django.utils.module_loading import module_has_submodule | |
class AppUrls(object): | |
_get_urls = None | |
reraise = settings.DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ..zpool import ZPool, c_libzfs, ffi_libzfs, enums | |
zpool_status_t = enums.zpool_status | |
import sys | |
from datetime import datetime | |
import time | |
def nicenum(value): |