mirror of https://github.com/scrapy/scrapy.git
Removed ugly loading of string codecs
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40357
This commit is contained in:
parent
defcb45120
commit
bc13a5924a
|
|
@ -1 +1 @@
|
|||
from scrapy.contrib.codecs import x_mac_roman
|
||||
from scrapy.contrib.codecs.x_mac_roman import XMacRomanCodec
|
||||
|
|
|
|||
|
|
@ -311,4 +311,6 @@ def x_mac_roman_search_function(name):
|
|||
if name == 'x-mac-roman':
|
||||
return getregentry()
|
||||
|
||||
codecs.register(x_mac_roman_search_function)
|
||||
class XMacRomanCodec(object):
|
||||
def __init__(self):
|
||||
codecs.register(x_mac_roman_search_function)
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ from scrapy.item.pipeline import ItemPipeline
|
|||
from scrapy.spider import spiders
|
||||
from scrapy.spider.middleware import SpiderMiddlewareManager
|
||||
from scrapy.utils.defer import chain_deferred, defer_succeed, mustbe_deferred, deferred_degenerate
|
||||
from scrapy.contrib import codecs
|
||||
|
||||
class ExecutionEngine(object):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue