diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/scraperwiki/sql.py b/scraperwiki/sql.py
index <HASH>..<HASH> 100644
--- a/scraperwiki/sql.py
+++ b/scraperwiki/sql.py
@@ -135,6 +135,13 @@ def execute(query, data=None):
result = connection.execute(query, data)
+ _State.table = None
+ _State.metadata = None
+ try:
+ del _State.tabl... | After .execute drop cache A .execute() might drop or modify a table. Meaning that any cached metadata will be invalid. Fixes issue #<I> | py |
diff --git a/prom/model.py b/prom/model.py
index <HASH>..<HASH> 100644
--- a/prom/model.py
+++ b/prom/model.py
@@ -86,9 +86,6 @@ class Orm(object):
val = datetime.datetime.utcnow()
return val
- index_created = Index("_created")
- index_updated = Index("_updated")
-
@decorators.classpr... | removes default indexes on _created and _updated, in looking at our usage, only 2-3 of our tables rely on that index, and it just sits there on all the other tables, so when we needed we can add it back specifically for that table | py |
diff --git a/salt/utils/cache.py b/salt/utils/cache.py
index <HASH>..<HASH> 100644
--- a/salt/utils/cache.py
+++ b/salt/utils/cache.py
@@ -142,12 +142,10 @@ class CacheDisk(CacheDict):
"""
if not salt.utils.msgpack.HAS_MSGPACK or not os.path.exists(self._path):
return
- try:
- ... | make proper use of msgpack | py |
diff --git a/spatialist/__init__.py b/spatialist/__init__.py
index <HASH>..<HASH> 100644
--- a/spatialist/__init__.py
+++ b/spatialist/__init__.py
@@ -1,4 +1,14 @@
+try:
+ from osgeo import gdal
+ if gdal.__version__ < '2.1':
+ raise ImportError('GDAL version < 2.1. Please refer to the installation isntr... | [init] added check of GDAL import and version | py |
diff --git a/km3pipe/utils/tohdf5.py b/km3pipe/utils/tohdf5.py
index <HASH>..<HASH> 100644
--- a/km3pipe/utils/tohdf5.py
+++ b/km3pipe/utils/tohdf5.py
@@ -56,10 +56,11 @@ __status__ = "Development"
def tohdf5(input_files, output_file, n_events, **kwargs):
"""Convert Any file to HDF5 file"""
from km3pipe impo... | Write hdf5 metadata from kwargs | py |
diff --git a/doctr/__main__.py b/doctr/__main__.py
index <HASH>..<HASH> 100644
--- a/doctr/__main__.py
+++ b/doctr/__main__.py
@@ -419,7 +419,7 @@ def configure(args, parser):
- doctr deploy{options} <target-directory>
env:
- global:`
+ global:
- secure: "{encrypted_... | Removed ` from the output. | py |
diff --git a/genes/api.py b/genes/api.py
index <HASH>..<HASH> 100644
--- a/genes/api.py
+++ b/genes/api.py
@@ -110,7 +110,7 @@ class GeneResource(ModelResource):
def search_autocomplete(self, request, **kwargs):
query = request.GET.get('query', '')
- sqs = SearchQuerySet().autocomplete(std_name_a... | Changing the number of results returned by the autocomplete_search from 5 to <I>. | py |
diff --git a/src/discoursegraphs/readwrite/rst/dis.py b/src/discoursegraphs/readwrite/rst/dis.py
index <HASH>..<HASH> 100644
--- a/src/discoursegraphs/readwrite/rst/dis.py
+++ b/src/discoursegraphs/readwrite/rst/dis.py
@@ -94,8 +94,21 @@ class RSTLispDocumentGraph(DiscourseDocumentGraph):
tree_type = self.get_... | fix #<I>: added/connected root node to *.dis / RSTLispDocumentGraph | py |
diff --git a/cpp/__init__.py b/cpp/__init__.py
index <HASH>..<HASH> 100644
--- a/cpp/__init__.py
+++ b/cpp/__init__.py
@@ -1 +1 @@
-__version__ = '0.2'
+__version__ = '0.2.1' | Increment patch version to <I> | py |
diff --git a/news-please.py b/news-please.py
index <HASH>..<HASH> 100644
--- a/news-please.py
+++ b/news-please.py
@@ -9,15 +9,12 @@ import logging
import pymysql
from elasticsearch import Elasticsearch
from scrapy.utils.log import configure_logging
-# the following try except statement is necessary to be able to st... | Changed import to absolute statements and added necessary path to sys path | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -545,14 +545,16 @@ class AESFuncs(object):
# Don't honor private functions
if func.startswith('__'):
return self.crypticle.dumps({})
- # Run the func
- ret =... | Optimization fix for AESFuncs class | py |
diff --git a/src/cmdline/settings.py b/src/cmdline/settings.py
index <HASH>..<HASH> 100644
--- a/src/cmdline/settings.py
+++ b/src/cmdline/settings.py
@@ -101,11 +101,14 @@ class SettingsParser(BaseCommand):
v = getattr(args, item)
k = item.upper().replace('-', '_')
- if v != self... | Fix file -> env -> arg override | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ flask_requires = [
]
flask_tests_requires = [
- 'Flask-Login>=0.1.3',
+ 'Flask-Login>=0.2.0',
]
# If it's python3, remove flask & unittest2 | Bump Flask-Login minimum test req to <I> for anonymous mixin | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-# encoding: utf-8
from setuptools import setup | Remove file encoding from setup.py | py |
diff --git a/microservices/http/resources.py b/microservices/http/resources.py
index <HASH>..<HASH> 100644
--- a/microservices/http/resources.py
+++ b/microservices/http/resources.py
@@ -121,6 +121,7 @@ class ResourceSchema(BaseResourceSchema):
browser['resource'] = resource
if methods is not None... | fixes for BrowserResourceSchema | py |
diff --git a/collatex-pythonport/tests/test_near_matching.py b/collatex-pythonport/tests/test_near_matching.py
index <HASH>..<HASH> 100644
--- a/collatex-pythonport/tests/test_near_matching.py
+++ b/collatex-pythonport/tests/test_near_matching.py
@@ -23,9 +23,9 @@ class Test(unittest.TestCase):
collation.add_p... | Fixed broken expectations in near-matching test | py |
diff --git a/gwpy/io/kerberos.py b/gwpy/io/kerberos.py
index <HASH>..<HASH> 100644
--- a/gwpy/io/kerberos.py
+++ b/gwpy/io/kerberos.py
@@ -125,12 +125,14 @@ def kinit(username=None, password=None, realm=None, exe=None, keytab=None,
else:
keytab = None
- # set verbose if prompting for ... | gwpy.io: error kinit() if prompting without tty fixes #<I> by raising `KerberosError` if `kinit()` requires a prompt, but we're in a non-interactive session | py |
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/policies/__init__.py
+++ b/sos/policies/__init__.py
@@ -385,6 +385,9 @@ class PresetDefaults(object):
odict = self.opts.dict()
pdict = {self.name: {DESC: self.desc, NOTE: self.note, OPTS: odict}}
+... | [presets] Create preset directory if it does not exist When attempting to add a preset when /var/lib/sos/presets does not exist, the attempt will fail. Now, if the directory does not exist, sos will attempt to create it. Resolves: #<I> | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100755
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -483,6 +483,8 @@ def scp_file_transfer(request):
if os.path.exists(alt_file):
os.remove(alt_file)
+ scp_transfer.close_scp_chan()
+
return (ssh_conn, file_system) | Close the unused SCP connection (#<I>) | py |
diff --git a/nipap-cli/nipap_cli/command.py b/nipap-cli/nipap_cli/command.py
index <HASH>..<HASH> 100755
--- a/nipap-cli/nipap_cli/command.py
+++ b/nipap-cli/nipap_cli/command.py
@@ -125,6 +125,10 @@ class Command:
if 'exec' in val:
self.exe = val['exec']
+ # simpl... | Add support for simple bool values Part of underlaying work for #<I> | py |
diff --git a/h2o-py/h2o/model/confusion_matrix.py b/h2o-py/h2o/model/confusion_matrix.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/model/confusion_matrix.py
+++ b/h2o-py/h2o/model/confusion_matrix.py
@@ -12,6 +12,7 @@ class ConfusionMatrix(object):
if not cm: raise ValueError("Missing data, `cm_raw` is None")
... | PUBDEV-<I>: transpose matrix fixed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -124,8 +124,8 @@ def get_version_info():
vinfo = _version_helper.generate_git_version_info()
except:
vinfo = vdummy()
- vinfo.version = '1.16.dev3'
- vinfo.release = 'False'
+ vinfo.... | prep for release <I> (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(
packages=find_packages(),
include_package_data=True,
zip_safe=False,
- install_requires=['nose', 'coverage==3.4'],
+ install_requires=['nose', 'coverage>=3.4'],
classifiers=[
... | resolving dependency error with Coverage <I> | py |
diff --git a/salt/states/boto_sqs.py b/salt/states/boto_sqs.py
index <HASH>..<HASH> 100644
--- a/salt/states/boto_sqs.py
+++ b/salt/states/boto_sqs.py
@@ -58,7 +58,7 @@ passed in as a dict, or as a string to pull from pillars or minion config:
key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
'''
from _... | Replaced import six in file /salt/states/boto_sqs.py | py |
diff --git a/src/discoursegraphs/__init__.py b/src/discoursegraphs/__init__.py
index <HASH>..<HASH> 100644
--- a/src/discoursegraphs/__init__.py
+++ b/src/discoursegraphs/__init__.py
@@ -47,6 +47,10 @@ def get_package_root_dir(src_root_dir=SRC_ROOT_DIR):
if dirname.startswith('discoursegraphs') and dirname.endswit... | Fix data_files location when installing with wheel Added logic to correctly locate data_files within the package when installed using wheel. (Fixes #<I>) | py |
diff --git a/pirate/pirate.py b/pirate/pirate.py
index <HASH>..<HASH> 100755
--- a/pirate/pirate.py
+++ b/pirate/pirate.py
@@ -259,8 +259,9 @@ def connect_mirror(mirror, printer, args):
mode=args.action,
terms=args.search,
mirror=mirror)
- except (urllib.error.URLError, socket.... | show the reason in case of the mirror failure | py |
diff --git a/openquake/risklib/riskmodels.py b/openquake/risklib/riskmodels.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/riskmodels.py
+++ b/openquake/risklib/riskmodels.py
@@ -626,7 +626,7 @@ class CompositeRiskModel(collections.abc.Mapping):
for rm in self.values():
... | Removed a logging.debug [skip CI] | py |
diff --git a/escpos/escpos.py b/escpos/escpos.py
index <HASH>..<HASH> 100644
--- a/escpos/escpos.py
+++ b/escpos/escpos.py
@@ -208,9 +208,11 @@ class Escpos(object):
current += bandsize
def direct_image(self, image):
- """ Send image to printer
+ """ Direct printing function for pictur... | DOC improve docstring of direct_image | py |
diff --git a/charmhelpers/fetch/__init__.py b/charmhelpers/fetch/__init__.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/fetch/__init__.py
+++ b/charmhelpers/fetch/__init__.py
@@ -135,7 +135,7 @@ def filter_installed_packages(packages):
def apt_cache(in_memory=True):
"""Build and return an apt cache"""
- ... | Fix import path to work with Python3 | py |
diff --git a/src/_dependencies/injector.py b/src/_dependencies/injector.py
index <HASH>..<HASH> 100644
--- a/src/_dependencies/injector.py
+++ b/src/_dependencies/injector.py
@@ -18,6 +18,7 @@ class _InjectorType(_InjectorTypeType):
if not bases:
namespace["__dependencies__"] = {}
nam... | refactor: backport python <I> hacks to run on pypy #<I> | py |
diff --git a/identify/extensions.py b/identify/extensions.py
index <HASH>..<HASH> 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -230,6 +230,7 @@ NAMES = {
'.npmignore': {'text', 'npmignore'},
'.pdbrc': EXTENSIONS['py'] | {'pdbrc'},
'.pypirc': EXTENSIONS['ini'] | {'pypirc'},
+ '.r... | Add '.rstcheck.cfg'->'ini' '.rstcheck.cfg' is used by 'rstcheck' and is like 'setup.cfg' an 'ini' like file | py |
diff --git a/landsat/landsat.py b/landsat/landsat.py
index <HASH>..<HASH> 100755
--- a/landsat/landsat.py
+++ b/landsat/landsat.py
@@ -362,11 +362,16 @@ def main(args):
d = Downloader(download_dir=args.dest)
try:
bands = convert_to_integer_list(args.bands)
- if ... | apply pansharpen and ndvi only if -p is used | py |
diff --git a/pymemcache/__init__.py b/pymemcache/__init__.py
index <HASH>..<HASH> 100644
--- a/pymemcache/__init__.py
+++ b/pymemcache/__init__.py
@@ -1 +1 @@
-__version__ = '1.2.8'
+__version__ = '1.2.9' | Increasing version to <I>, including the addition of PooledClient and associated code | py |
diff --git a/pypeerassets/protocol.py b/pypeerassets/protocol.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/protocol.py
+++ b/pypeerassets/protocol.py
@@ -312,6 +312,12 @@ class CardTransfer:
return self.__dict__
+ @classmethod
+ def from_json(cls, json: dict):
+ '''load the Deck object fr... | from_json method for the CardTransfer object | py |
diff --git a/napalm_junos/__init__.py b/napalm_junos/__init__.py
index <HASH>..<HASH> 100644
--- a/napalm_junos/__init__.py
+++ b/napalm_junos/__init__.py
@@ -18,7 +18,7 @@
import pkg_resources
# Import local modules
-from napalm_junos.junos import JunOSDriver
+from napalm_junos.junos import JunOSDriver # noqa
... | Fixing pylama issue | py |
diff --git a/previewer_code/indico_previewer_code/plugin.py b/previewer_code/indico_previewer_code/plugin.py
index <HASH>..<HASH> 100644
--- a/previewer_code/indico_previewer_code/plugin.py
+++ b/previewer_code/indico_previewer_code/plugin.py
@@ -27,7 +27,8 @@ register_custom_mimetypes()
class PygmentsPreviewer(Previe... | Add missing MIME type in code previewer | py |
diff --git a/nodes/method.py b/nodes/method.py
index <HASH>..<HASH> 100644
--- a/nodes/method.py
+++ b/nodes/method.py
@@ -10,4 +10,15 @@ class Method(Function):
self.static = cursor.is_static_method()
self.virtual = cursor.is_virtual_method()
+ self.abstract = True
+ self.update_abstr... | Set method abstract depending on whether a definition is found | py |
diff --git a/examples/python/helloworld/greeter_client_with_options.py b/examples/python/helloworld/greeter_client_with_options.py
index <HASH>..<HASH> 100644
--- a/examples/python/helloworld/greeter_client_with_options.py
+++ b/examples/python/helloworld/greeter_client_with_options.py
@@ -31,7 +31,7 @@ def run():
... | Update keepalive timeout: <I> -> <I> | py |
diff --git a/holoviews/core/options.py b/holoviews/core/options.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/options.py
+++ b/holoviews/core/options.py
@@ -123,7 +123,7 @@ class Options(param.Parameterized):
def __init__(self, key=None, allowed_keywords=None, **kwargs):
- for kwarg in kwargs:
+ ... | Options now checks validity of keywords in sorted order | py |
diff --git a/py3status/parse_config.py b/py3status/parse_config.py
index <HASH>..<HASH> 100644
--- a/py3status/parse_config.py
+++ b/py3status/parse_config.py
@@ -400,8 +400,6 @@ class ConfigParser:
t_type = token['type']
t_value = token['value']
if t_type == 'newline':
- ... | allow module definitions to start on a new line | py |
diff --git a/bindings/py/nupic/bindings/regions/TestNode.py b/bindings/py/nupic/bindings/regions/TestNode.py
index <HASH>..<HASH> 100644
--- a/bindings/py/nupic/bindings/regions/TestNode.py
+++ b/bindings/py/nupic/bindings/regions/TestNode.py
@@ -25,8 +25,12 @@ import numpy
from nupic.bindings.regions.PyRegion impor... | Alternative pycapnp Windows guard for TestNode | py |
diff --git a/grab/spider/pattern.py b/grab/spider/pattern.py
index <HASH>..<HASH> 100644
--- a/grab/spider/pattern.py
+++ b/grab/spider/pattern.py
@@ -62,7 +62,8 @@ class SpiderPattern(object):
self.add_task(task2)
return True
- def process_links(self, grab, task_name, xpath, limit=None, ... | Add resolve_base option to process_links method | py |
diff --git a/broadlink/__init__.py b/broadlink/__init__.py
index <HASH>..<HASH> 100644
--- a/broadlink/__init__.py
+++ b/broadlink/__init__.py
@@ -45,6 +45,7 @@ SUPPORTED_TYPES = {
0x756C: (sp4, "SP4M", "Broadlink"),
0x756F: (sp4, "MCB1", "Broadlink"),
0x7579: (sp4, "SP4L-EU", "Broadlink"),
+ 0x757B: ... | Add support for Broadlink SP4L-AU (0x<I>B) (#<I>) | py |
diff --git a/rqalpha/__main__.py b/rqalpha/__main__.py
index <HASH>..<HASH> 100644
--- a/rqalpha/__main__.py
+++ b/rqalpha/__main__.py
@@ -102,6 +102,7 @@ def update_bundle(data_bundle_path, locale):
@click.option('--locale', 'extra__locale', type=click.Choice(['cn', 'en']), default="cn")
@click.option('--extra-vars'... | add dividend reinvestment flag (cherry picked from commit f<I>b) | py |
diff --git a/downhill/adaptive.py b/downhill/adaptive.py
index <HASH>..<HASH> 100644
--- a/downhill/adaptive.py
+++ b/downhill/adaptive.py
@@ -288,8 +288,9 @@ class ESGD(RMSProp):
D_tm1 = shared_like(param, 'D_ewma')
Hv = TT.Rop(grad, param, self.rng.normal(param.shape))
D_t = self.ewma * D_t... | Move rms regularizer out of square root. | py |
diff --git a/pyrax/object_storage.py b/pyrax/object_storage.py
index <HASH>..<HASH> 100644
--- a/pyrax/object_storage.py
+++ b/pyrax/object_storage.py
@@ -169,7 +169,8 @@ class Container(BaseResource):
def _set_cdn_defaults(self):
"""Sets all the CDN-related attributes to default values."""
- sel... | Fixes 'cdn_enabled' status for containers. GitHub #<I> This is similar to the fix made in #<I>, but for the new object_storage code. | py |
diff --git a/quark/tests/test_quark_plugin.py b/quark/tests/test_quark_plugin.py
index <HASH>..<HASH> 100644
--- a/quark/tests/test_quark_plugin.py
+++ b/quark/tests/test_quark_plugin.py
@@ -177,6 +177,7 @@ class TestIpAddresses(TestQuarkPlugin):
def test_create_ip_address_success_7(self):
'''7. Create ... | Added note about broken IPv6 custom_type | py |
diff --git a/tofu/tests/tests01_geom/tests01_GG.py b/tofu/tests/tests01_geom/tests01_GG.py
index <HASH>..<HASH> 100644
--- a/tofu/tests/tests01_geom/tests01_GG.py
+++ b/tofu/tests/tests01_geom/tests01_GG.py
@@ -436,7 +436,8 @@ def test08_Ves_Smesh_TorStruct(VPoly=VPoly, plot=True):
if plot and sys.version[0]=='2':... | [lm-test0] testing pushing rights | py |
diff --git a/openquake/calculators/reportwriter.py b/openquake/calculators/reportwriter.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/reportwriter.py
+++ b/openquake/calculators/reportwriter.py
@@ -49,7 +49,7 @@ class ReportWriter(object):
'ruptures_per_trt': 'Number of ruptures per tectonic regio... | Renamed a title of the report [skip CI] Former-commit-id: <I>e<I>f<I>f<I>bcb<I>c<I>b7c<I>dbb3b | py |
diff --git a/census_area/__init__.py b/census_area/__init__.py
index <HASH>..<HASH> 100644
--- a/census_area/__init__.py
+++ b/census_area/__init__.py
@@ -31,7 +31,8 @@ class GeoClient(census.core.Client):
year = self.default_year
filtered_tracts = AreaFilter(geojson_geometry,
- ... | Use year, if passed, in geo_tracts | py |
diff --git a/tests/test_vagrant.py b/tests/test_vagrant.py
index <HASH>..<HASH> 100644
--- a/tests/test_vagrant.py
+++ b/tests/test_vagrant.py
@@ -77,7 +77,11 @@ def fixture_test_dir() -> Generator[str, None, None]:
# Removes the directory created initially, runs once after the last test
sys.stderr.write("mod... | ignore failed destroy command if there's no environment (#<I>) | py |
diff --git a/tests/integration_test_vensim_pathway.py b/tests/integration_test_vensim_pathway.py
index <HASH>..<HASH> 100644
--- a/tests/integration_test_vensim_pathway.py
+++ b/tests/integration_test_vensim_pathway.py
@@ -130,6 +130,11 @@ class TestIntegrationExamples(unittest.TestCase):
from.test_utils impor... | Added test for lookup tables without range | py |
diff --git a/pyModbusTCP/client.py b/pyModbusTCP/client.py
index <HASH>..<HASH> 100644
--- a/pyModbusTCP/client.py
+++ b/pyModbusTCP/client.py
@@ -202,6 +202,7 @@ class ModbusClient:
self.__sock = None
continue
try:
+ self.__sock.settimeout(float(self.__time... | self__timeout is set in the main socket of pyModbus | py |
diff --git a/hotdoc/extensions/gi_html_formatter.py b/hotdoc/extensions/gi_html_formatter.py
index <HASH>..<HASH> 100644
--- a/hotdoc/extensions/gi_html_formatter.py
+++ b/hotdoc/extensions/gi_html_formatter.py
@@ -471,6 +471,7 @@ class GIHtmlFormatter(HtmlFormatter):
with open(page_path, 'w') as f:
... | gi_html_formatter: reset language to C after patching page. | py |
diff --git a/src/unitTests.py b/src/unitTests.py
index <HASH>..<HASH> 100644
--- a/src/unitTests.py
+++ b/src/unitTests.py
@@ -1454,7 +1454,7 @@ class UpcaseDowncaseUnicode(ParseTestCase):
ualphas = "".join( unichr(i) for i in range(sys.maxunicode)
if unichr(i).isalpha() )... | Typo in Jython-specific unit test | py |
diff --git a/rio_tiler/mosaic/reader.py b/rio_tiler/mosaic/reader.py
index <HASH>..<HASH> 100644
--- a/rio_tiler/mosaic/reader.py
+++ b/rio_tiler/mosaic/reader.py
@@ -59,6 +59,9 @@ def mosaic_reader(
Return (tile, mask) data and list of assets used.
"""
+ if issubclass(pixel_selection, MosaicMethodBa... | Allow method class to be passed to pixel_selection | py |
diff --git a/tests/test_presentation.py b/tests/test_presentation.py
index <HASH>..<HASH> 100644
--- a/tests/test_presentation.py
+++ b/tests/test_presentation.py
@@ -20,17 +20,6 @@ from pptx.slides import _Slide, _SlideLayout, _SlideMaster
from pptx.spec import namespaces, qtag
from testing import TestCase
-import... | log: remove logging from test_presentation.py | py |
diff --git a/demo_caffe2.py b/demo_caffe2.py
index <HASH>..<HASH> 100644
--- a/demo_caffe2.py
+++ b/demo_caffe2.py
@@ -28,11 +28,11 @@ print("Necessities imported!")
def DownloadResource(url, path):
'''Downloads resources from s3 by url and unzips them to the provided path'''
import requests
- from six im... | Change StringIO to BytesIO for Travis CI | py |
diff --git a/unit_lookup_table.py b/unit_lookup_table.py
index <HASH>..<HASH> 100644
--- a/unit_lookup_table.py
+++ b/unit_lookup_table.py
@@ -47,6 +47,7 @@ default_unit_symbol_lut = {
"dyne": (1.0, dimensions.force),
"erg": (1.0, dimensions.energy),
"esu": (1.0, dimensions.charge),
+ "gauss": (1.0,... | Fixing a typo in the definition of the arcsecond, moving gauss. --HG-- branch : yt-<I> | py |
diff --git a/flow/bytestream.py b/flow/bytestream.py
index <HASH>..<HASH> 100644
--- a/flow/bytestream.py
+++ b/flow/bytestream.py
@@ -25,10 +25,10 @@ class ByteStream(Node):
def _process(self,data):
try:
- for chunk in self._handle_http_request(data):
+ for chunk in self._hand... | ByteStream takes an object with a uri property | py |
diff --git a/airflow/providers/docker/operators/docker.py b/airflow/providers/docker/operators/docker.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/docker/operators/docker.py
+++ b/airflow/providers/docker/operators/docker.py
@@ -221,8 +221,6 @@ class DockerOperator(BaseOperator):
self.privileged = pr... | Remove `xcom_push` from `DockerOperator` (#<I>) | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -2179,7 +2179,7 @@ def get_managed(
if not source_sum:
return '', {}, 'Source file {0} not found'.format(source)
elif source_ha... | Added support for swift:// URLs | py |
diff --git a/blockstack_client/cli.py b/blockstack_client/cli.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/cli.py
+++ b/blockstack_client/cli.py
@@ -378,17 +378,17 @@ def run_cli(argv=None, config_path=CONFIG_PATH):
print("Set {} to {}".format(envar, enval), file=sys.stderr)
os... | fixes secret setting so that passed passwords work when not in --debug mode (re-exec code isn't called) | py |
diff --git a/arch/zx48k/backend/__str.py b/arch/zx48k/backend/__str.py
index <HASH>..<HASH> 100644
--- a/arch/zx48k/backend/__str.py
+++ b/arch/zx48k/backend/__str.py
@@ -117,7 +117,7 @@ def _free_sequence(tmp1, tmp2=False):
output.append('call __MEM_FREE')
output.append('pop hl')
- REQUIRES.add('all... | Fix LEN bug not including a run time routine | py |
diff --git a/asn1crypto/core.py b/asn1crypto/core.py
index <HASH>..<HASH> 100644
--- a/asn1crypto/core.py
+++ b/asn1crypto/core.py
@@ -485,6 +485,8 @@ class Void(Asn1Value):
property and .dump() method to be compatible with other value classes.
"""
+ contents = b''
+
def __eq__(self, other):
... | When setting None to an optional field in core.Sequence, construct core.VOID | py |
diff --git a/test/integration/test_speech_to_text_v1.py b/test/integration/test_speech_to_text_v1.py
index <HASH>..<HASH> 100644
--- a/test/integration/test_speech_to_text_v1.py
+++ b/test/integration/test_speech_to_text_v1.py
@@ -142,11 +142,13 @@ class TestSpeechToTextV1(TestCase):
assert get_grammar_res... | test(stt): refactor tests when operation is locked | py |
diff --git a/salt/modules/debian_ip.py b/salt/modules/debian_ip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/debian_ip.py
+++ b/salt/modules/debian_ip.py
@@ -1201,7 +1201,7 @@ def build_interface(iface, iface_type, enabled, **settings):
if settings['test']:
return _read_temp_ifaces(iface, opts[iface]... | removing the DIR argument from the call to _write_file_ifaces. | py |
diff --git a/lib/ansiblelint/version.py b/lib/ansiblelint/version.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/version.py
+++ b/lib/ansiblelint/version.py
@@ -1 +1 @@
-__version__ = '3.4.0'
+__version__ = '3.4.1' | Update version to <I> Mistagged <I> on an out-of-sync repo | py |
diff --git a/pypdb/clients/search/search_client.py b/pypdb/clients/search/search_client.py
index <HASH>..<HASH> 100644
--- a/pypdb/clients/search/search_client.py
+++ b/pypdb/clients/search/search_client.py
@@ -196,12 +196,24 @@ def perform_search_with_graph(query_object: Union[QueryNode, QueryGroup],
... | [Documentation] - Updated docs to make sure they're up to snuff for others to use em | py |
diff --git a/cobra/flux_analysis/phenotype_phase_plane.py b/cobra/flux_analysis/phenotype_phase_plane.py
index <HASH>..<HASH> 100644
--- a/cobra/flux_analysis/phenotype_phase_plane.py
+++ b/cobra/flux_analysis/phenotype_phase_plane.py
@@ -239,7 +239,7 @@ def calculate_phenotype_phase_plane(
metabolite2_name = list... | phenotypePhasePlane fix integer division in py3 Because / results in floating point division in py3, use // instead. | py |
diff --git a/grammpy/Grammars/RawGrammar.py b/grammpy/Grammars/RawGrammar.py
index <HASH>..<HASH> 100644
--- a/grammpy/Grammars/RawGrammar.py
+++ b/grammpy/Grammars/RawGrammar.py
@@ -19,10 +19,13 @@ class RawGrammar:
terminals = [] if terminals is None else terminals
nonterminals = [] if nonterminals ... | Implement clever adding of terminals and nonterminals when Grammar is create | py |
diff --git a/parsl/dataflow/usage_tracking/usage.py b/parsl/dataflow/usage_tracking/usage.py
index <HASH>..<HASH> 100644
--- a/parsl/dataflow/usage_tracking/usage.py
+++ b/parsl/dataflow/usage_tracking/usage.py
@@ -209,13 +209,13 @@ class UsageTracker (object):
return x
- def send_message(self):
+ de... | Correct docstring for usage tracking send message, and add corresponding type annotation (#<I>) | py |
diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py
index <HASH>..<HASH> 100644
--- a/salt/utils/cloud.py
+++ b/salt/utils/cloud.py
@@ -135,6 +135,21 @@ def os_script(os_, vm_=None, opts=None, minion=''):
return ''
+def inline_script(script_, vm_, opts, minion):
+ '''
+ Run a sequence of commands _aft... | Initial commit to add feature of #<I> | py |
diff --git a/tests/test_mixins.py b/tests/test_mixins.py
index <HASH>..<HASH> 100644
--- a/tests/test_mixins.py
+++ b/tests/test_mixins.py
@@ -3,6 +3,7 @@ import pytest
from unittest.mock import patch, Mock
from django.views.generic import TemplateView
from django.utils import translation
+from django.conf import se... | Update test config to set MIDDLEWARE instead of MIDDLEWARE_CLASSES | py |
diff --git a/robosuite/utils/mjmod.py b/robosuite/utils/mjmod.py
index <HASH>..<HASH> 100644
--- a/robosuite/utils/mjmod.py
+++ b/robosuite/utils/mjmod.py
@@ -1697,6 +1697,7 @@ class DynamicsModder(BaseModder):
# Make sure specified parameter is valid, and then modify it
assert attr in self.dynamics_p... | clarify programmatic trick for cleanly calling mod methods | py |
diff --git a/canmatrix/importsym.py b/canmatrix/importsym.py
index <HASH>..<HASH> 100644
--- a/canmatrix/importsym.py
+++ b/canmatrix/importsym.py
@@ -135,11 +135,15 @@ def importSym(filename, **options):
else:
if tempArray[1] == 'unsigned':
is_signed = Fal... | .SYM: `bit` as unsigned, skip `float` More intermediate steps until real support is implemented. | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -131,6 +131,7 @@ class PbsTestSuite(unittest.TestCase):
actual_out = file_obj.read()
self.assertTrue(len(actual_out) != 0)
+ file_obj.close()
@requires_posix
@@ -147,6 +148,7 @@ class PbsTestSui... | Fix a couple ResourceWarnings under python3. | py |
diff --git a/pnc/utils.py b/pnc/utils.py
index <HASH>..<HASH> 100644
--- a/pnc/utils.py
+++ b/pnc/utils.py
@@ -11,7 +11,7 @@ def _remove_nulls(input_json):
keys = input_json.keys()
if keys:
for k in keys:
- if input_json[k] == None:
+ if input_json[k] is None:
d... | refactors and corrections to python code style | py |
diff --git a/spyder/plugins/plots/widgets/main_widget.py b/spyder/plugins/plots/widgets/main_widget.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/plots/widgets/main_widget.py
+++ b/spyder/plugins/plots/widgets/main_widget.py
@@ -18,16 +18,14 @@ from spyder.api.widgets import PluginMainWidgetMenus, PluginMainWidge... | Replace colors in plots pane with the ones from new palette | py |
diff --git a/tarbell/app.py b/tarbell/app.py
index <HASH>..<HASH> 100644
--- a/tarbell/app.py
+++ b/tarbell/app.py
@@ -233,9 +233,10 @@ class TarbellSite:
#@TODO traverse hooks
def call_hook(self, hook, *args, **kwargs):
- puts("Calling {0} hooks".format(hook))
+ if len(self.hooks[hook]):... | only print calling hooks message if there are hooks to be called | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ with open('HISTORY.md') as history_file:
install_requires = [
'boto3>=1.9.27',
'funcy>=1.11',
- 'keras-preprocessing>=1.1.2',
+ 'keras-preprocessing[image]>=1.1.2',
'networkx>=2.1',
'n... | Install keras-preprocessing image extra | py |
diff --git a/can/interfaces/serial/serial_can.py b/can/interfaces/serial/serial_can.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/serial/serial_can.py
+++ b/can/interfaces/serial/serial_can.py
@@ -21,6 +21,11 @@ except ImportError:
)
serial = None
+try:
+ from serial.tools import list_ports
+except... | Add _detect_available_configs to serial_can (#<I>) | py |
diff --git a/fedmsg_meta_fedora_infrastructure/fasshim.py b/fedmsg_meta_fedora_infrastructure/fasshim.py
index <HASH>..<HASH> 100644
--- a/fedmsg_meta_fedora_infrastructure/fasshim.py
+++ b/fedmsg_meta_fedora_infrastructure/fasshim.py
@@ -79,7 +79,9 @@ def make_fas_cache(**config):
creds = config['fas_credential... | Allow the FAS url to be configurable. | py |
diff --git a/mapi/providers.py b/mapi/providers.py
index <HASH>..<HASH> 100644
--- a/mapi/providers.py
+++ b/mapi/providers.py
@@ -356,7 +356,7 @@ class TVDb(Provider):
id_tvdb=str(id_tvdb),
)
found = True
- except ValueError:
+ ... | Prevents skipped hits from raising exceptions when parsed ... we don't care if exceptions are raised when splitting / stripping / replacing NoneTypes since entries with NoneTypes are skipped anyway | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@ install_requires = [
"inflect>=2.1.0",
"humanize>=0.5.1",
"dulwich>=0.19.11",
- "ruamel.yaml==0.15.91",
+ "ruamel.yaml>=0.15.91",
]
# Extra dependencies for remote integrations | setup: match ruaml version with the one specified in requirements.txt | py |
diff --git a/python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_executor_definition.py b/python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_executor_definition.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_executor_def... | additonal test for default executor Test Plan: the test Reviewers: cdecarolis Reviewed By: cdecarolis Differential Revision: <URL> | py |
diff --git a/invenio_oaiserver/query.py b/invenio_oaiserver/query.py
index <HASH>..<HASH> 100644
--- a/invenio_oaiserver/query.py
+++ b/invenio_oaiserver/query.py
@@ -86,7 +86,7 @@ def get_records(**kwargs):
scroll_id = response.get('_scroll_id')
# clean descriptor on last page
- if page * pe... | query: fix undefined variable name * Fixes typo in `page_` variable name. (closes #<I>) | py |
diff --git a/scripts/view_world.py b/scripts/view_world.py
index <HASH>..<HASH> 100644
--- a/scripts/view_world.py
+++ b/scripts/view_world.py
@@ -2,7 +2,6 @@
import os
import sys
import math
-#import user_commands as mod_cmd
try:
import Tkinter as Tkinter
@@ -14,7 +13,7 @@ from tkinter import Tk, Canvas, Photo... | view world script uses correct path to load sample | py |
diff --git a/test_projects/blog/controllers/index.py b/test_projects/blog/controllers/index.py
index <HASH>..<HASH> 100644
--- a/test_projects/blog/controllers/index.py
+++ b/test_projects/blog/controllers/index.py
@@ -2,9 +2,22 @@ from pythonrails.response import Response
class Index(object):
+ """
+ Index ... | Added some docs inside the test 'blog' project | py |
diff --git a/ndio/remote/ndingest.py b/ndio/remote/ndingest.py
index <HASH>..<HASH> 100644
--- a/ndio/remote/ndingest.py
+++ b/ndio/remote/ndingest.py
@@ -296,7 +296,7 @@ class NDIngest:
image_path,
image_type
))
- return dims
+ return dims[::-1]
def v... | Fix for interm as image dimensions are swapped (similar #<I>) (#<I>) | py |
diff --git a/libre/apps/main/views.py b/libre/apps/main/views.py
index <HASH>..<HASH> 100644
--- a/libre/apps/main/views.py
+++ b/libre/apps/main/views.py
@@ -11,7 +11,7 @@ from data_drivers.models import Source
def home(request):
- return render_to_response('home.html', {'sources': Source.objects.filter(publis... | Only show datasets for which the user has access | py |
diff --git a/paginate/__init__.py b/paginate/__init__.py
index <HASH>..<HASH> 100644
--- a/paginate/__init__.py
+++ b/paginate/__init__.py
@@ -250,6 +250,8 @@ class Page(list):
else:
self.collection = []
+ self.collection_type = type(collection)
+
# The self.page is the number of... | Display of collection type fixed. Previous the collection type was always "list". | py |
diff --git a/lib/gruvi/__init__.py b/lib/gruvi/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/gruvi/__init__.py
+++ b/lib/gruvi/__init__.py
@@ -10,3 +10,5 @@ from gruvi.hub import Hub
from gruvi.greenlet import Greenlet
from gruvi.socket import Socket
from gruvi.ssl import SSLSocket
+from gruvi.local import local... | Expose "local" and "util" in the package root. | py |
diff --git a/tohu/v4/primitive_generators.py b/tohu/v4/primitive_generators.py
index <HASH>..<HASH> 100644
--- a/tohu/v4/primitive_generators.py
+++ b/tohu/v4/primitive_generators.py
@@ -416,7 +416,9 @@ class ShapelyGeolocationPair(TohuBaseGenerator):
def _make_geolocation_class(self):
fields = {'lon': at... | Add as_dict method so that geolocation items can be exported to pandas dataframe | py |
diff --git a/salt/modules/dockerng.py b/salt/modules/dockerng.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dockerng.py
+++ b/salt/modules/dockerng.py
@@ -623,7 +623,7 @@ def _clear_context():
'docker.client', 'docker.exec_driver', 'dockerng._pull_status',
'docker.docker_version', 'docker.docker_p... | py3: fix salt/modules/dockerng.py In python 3, dict.keys() returns an object that provides a keys-only view onto the dict rather than creating a separate list, so modifying a dict while iterating over its keys() fails. | py |
diff --git a/tests/test_date_time.py b/tests/test_date_time.py
index <HASH>..<HASH> 100644
--- a/tests/test_date_time.py
+++ b/tests/test_date_time.py
@@ -240,6 +240,7 @@ class DateTimeTest(TestCase):
self.assertEqual(t, ref)
def testOverflow(self):
+ Timezone.LOCAL = -2
ref = dt... | Fixed the DateTimeTest.testOverflow test to work correctly in all timezones. This test would fail if run directly when run on a computer with a positive timezone time adjustment while it would not fail when run together with all the other tests in this module since some other test would leave behind a nonpositive time... | py |
diff --git a/src/rez/util.py b/src/rez/util.py
index <HASH>..<HASH> 100644
--- a/src/rez/util.py
+++ b/src/rez/util.py
@@ -936,8 +936,8 @@ class propertycache(object):
return None
d = instance.__dict__.get('_cachedproperties', {})
- name = d.get('name')
- if name is None:
+ ... | + Fix a mistake in the logic. | py |
diff --git a/functional_tests/test_curve_curve.py b/functional_tests/test_curve_curve.py
index <HASH>..<HASH> 100644
--- a/functional_tests/test_curve_curve.py
+++ b/functional_tests/test_curve_curve.py
@@ -164,6 +164,11 @@ CURVE22 = bezier.Curve(np.array([
[-1.5625, 0.25],
[1.5625, 0.5625],
]))
+# g23 = sym... | Add curve-curve fnl. test with tangent line. | py |
diff --git a/pgcontents/utils/sync.py b/pgcontents/utils/sync.py
index <HASH>..<HASH> 100644
--- a/pgcontents/utils/sync.py
+++ b/pgcontents/utils/sync.py
@@ -13,6 +13,17 @@ from IPython.html.services.contents.filemanager import FileContentsManager
from ..checkpoints import PostgresCheckpoints
+def create_user(db_... | DEV: Add sync utility for user creation. | py |
diff --git a/numina/instrument/detector.py b/numina/instrument/detector.py
index <HASH>..<HASH> 100644
--- a/numina/instrument/detector.py
+++ b/numina/instrument/detector.py
@@ -195,6 +195,9 @@ class ArrayDetector(BaseConectable):
self.hot_pixel_value = self.out_dtype_info.max
self.meta = TreeDict(... | Added function to handle nonlinearity | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.