diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/scripts/Catalog.py b/scripts/Catalog.py
index <HASH>..<HASH> 100644
--- a/scripts/Catalog.py
+++ b/scripts/Catalog.py
@@ -6,7 +6,7 @@ from git import Repo
from scripts import PATH
-from .utils import pbar, tprint
+from .utils import get_logger, pbar
from .importer.funcs import (get_bibauthor_dict, ge... | MAINT: moved logger to Catalog object | py |
diff --git a/OpenPNM/Network/__MatFile__.py b/OpenPNM/Network/__MatFile__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Network/__MatFile__.py
+++ b/OpenPNM/Network/__MatFile__.py
@@ -194,7 +194,7 @@ class MatFile(GenericNetwork):
add_boundaries = False
Ps = sp.where([pore not in boundary_pores for... | Correct the MatFile to import the geometries of the extracted PN | py |
diff --git a/aiosc.py b/aiosc.py
index <HASH>..<HASH> 100644
--- a/aiosc.py
+++ b/aiosc.py
@@ -44,7 +44,7 @@ def translate_pattern(pattern):
c = pattern[i]
if c == '/':
j = i + 1
- if pattern[j] == '/':
+ if j < len(pattern) and pattern[j] == '/':
re... | Check boundaries when looking ahead for // operator | py |
diff --git a/pylibsrtp/__init__.py b/pylibsrtp/__init__.py
index <HASH>..<HASH> 100644
--- a/pylibsrtp/__init__.py
+++ b/pylibsrtp/__init__.py
@@ -52,9 +52,13 @@ class Policy:
Policy for an SRTP session.
"""
+ #: Indicates an undefined SSRC type
SSRC_UNDEFINED = _lib.ssrc_undefined
+ #: Indicates... | [docs] document some Policy constants | py |
diff --git a/tests/unit/modules/boto_lambda_test.py b/tests/unit/modules/boto_lambda_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/boto_lambda_test.py
+++ b/tests/unit/modules/boto_lambda_test.py
@@ -21,10 +21,12 @@ ensure_in_syspath('../../')
# Import Salt libs
import salt.config
+import salt.ext.si... | When writing strings to tmp files, use bytes for Python 3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -273,6 +273,12 @@ setup(
'data/*/*',
],
},
+ exclude_package_data={
+ 'mimesis': [
+ # It's for development.
+ 'data/locale_template/*'
+ ],
+ },
data_f... | Excluded locale_template from final package | py |
diff --git a/dialogs/grid_frame3.py b/dialogs/grid_frame3.py
index <HASH>..<HASH> 100755
--- a/dialogs/grid_frame3.py
+++ b/dialogs/grid_frame3.py
@@ -620,8 +620,7 @@ class GridFrame(wx.Frame): # class GridFrame(wx.ScrolledWindow):
if self.remove_cols_mode:
self.remove_col_label(event)
... | magic gui: reactivate multiple cell editing | py |
diff --git a/pqdict/__init__.py b/pqdict/__init__.py
index <HASH>..<HASH> 100644
--- a/pqdict/__init__.py
+++ b/pqdict/__init__.py
@@ -545,7 +545,7 @@ def nlargest(n, mapping, key=None):
it = mapping.iteritems()
except AttributeError:
it = iter(mapping.items())
- pq = minpq(key=key)
+ pq = ... | use pqdict instead of minpq in nlargest | py |
diff --git a/webassets_elm/__init__.py b/webassets_elm/__init__.py
index <HASH>..<HASH> 100644
--- a/webassets_elm/__init__.py
+++ b/webassets_elm/__init__.py
@@ -53,7 +53,7 @@ class Elm(ExternalTool):
with TemporaryDirectory("w+") as tempd:
outf = os.path.join(tempd, "output.js")
- w... | Keep compatibility with Python versions <I> and <I> | py |
diff --git a/tests/search/test_local.py b/tests/search/test_local.py
index <HASH>..<HASH> 100644
--- a/tests/search/test_local.py
+++ b/tests/search/test_local.py
@@ -1,7 +1,8 @@
# coding=utf-8
import unittest
from tests.search.dummies import DummyProblem, GOAL, DummyGeneticProblem
-from simpleai.search.local import... | Added test for beam_best_first algorithm | py |
diff --git a/zappa/cli.py b/zappa/cli.py
index <HASH>..<HASH> 100644
--- a/zappa/cli.py
+++ b/zappa/cli.py
@@ -1239,7 +1239,7 @@ def handle(): # pragma: no cover
cli.remove_uploaded_zip()
cli.remove_local_zip()
- click.echo("Oh no! An " + click.style("error occured", fg='red', bold=Tr... | Fixed minor typo in `zappa/cli.py` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,4 +26,17 @@ setup(
include_package_data=True,
packages=['kombine'],
install_requires=['numpy', 'scipy'],
+ classifiers=[
+ 'Development Status :: 4 - Beta',
+ 'Programming Language :: Python... | setup.py: added classifiers | py |
diff --git a/pyt/vulnerabilities.py b/pyt/vulnerabilities.py
index <HASH>..<HASH> 100644
--- a/pyt/vulnerabilities.py
+++ b/pyt/vulnerabilities.py
@@ -74,7 +74,7 @@ def identify_triggers(
sources,
sinks,
lattice,
- nosec_lines=set()
+ nosec_lines
):
"""Identify sources, sinks and sanitisers i... | removed set() from nosec_lines | py |
diff --git a/zipline/finance/slippage.py b/zipline/finance/slippage.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/slippage.py
+++ b/zipline/finance/slippage.py
@@ -94,9 +94,8 @@ class VolumeShareSlippage(object):
desired_order = total_order + open_amount
- volume_share = direction * (... | Uses `min` function in place of taking the minimum with an if statement. | py |
diff --git a/tempora/timing.py b/tempora/timing.py
index <HASH>..<HASH> 100644
--- a/tempora/timing.py
+++ b/tempora/timing.py
@@ -187,15 +187,17 @@ class BackoffDelay:
>>> at_least_one = lambda n: max(n, 1)
>>> bd = BackoffDelay(delay=0.01, factor=2, limit=at_least_one)
- >>> bd()
- >>> bd.delay
+ >>> next(bd)
+... | Update tests to work with iterable values rather than invoking the delays. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,9 @@ setup(
install_requires=['numpy', 'pandas', 'requests', 'future'],
extras_require={
'igraph': ['python-igraph'],
- 'all': ['python-igraph', 'numexpr', 'Bottleneck']
+ 'networkx':... | Update setup.py with optional networkx dependency | py |
diff --git a/_pytest/main.py b/_pytest/main.py
index <HASH>..<HASH> 100644
--- a/_pytest/main.py
+++ b/_pytest/main.py
@@ -200,10 +200,11 @@ class _CompatProperty(object):
if obj is None:
return self
- warnings.warn(
- "usage of {owner!r}.{name} is deprecated, please use pytest... | comment out compatproperty deprecations todo: reenable in the features branch | py |
diff --git a/glad/generator/generator.py b/glad/generator/generator.py
index <HASH>..<HASH> 100644
--- a/glad/generator/generator.py
+++ b/glad/generator/generator.py
@@ -38,7 +38,7 @@ class Generator(object):
extension_names = list(chain.from_iterable(self.spec.extensions[a]
... | fix issue #<I> - order of extension arguments is not important | py |
diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py
index <HASH>..<HASH> 100644
--- a/custodian/vasp/handlers.py
+++ b/custodian/vasp/handlers.py
@@ -90,7 +90,7 @@ class VaspErrorHandler(ErrorHandler):
vi["INCAR"].write_file("INCAR")
vi["POSCAR"].write_file("POSCAR")
vi["KPOI... | Fix non-serializability of sets. | py |
diff --git a/tests/integ/test_tf_cifar.py b/tests/integ/test_tf_cifar.py
index <HASH>..<HASH> 100644
--- a/tests/integ/test_tf_cifar.py
+++ b/tests/integ/test_tf_cifar.py
@@ -35,7 +35,7 @@ class PickleSerializer(object):
@pytest.mark.continuous_testing
def test_cifar(sagemaker_session, tf_full_version):
- with t... | increase timeout in cifar test (#<I>) | py |
diff --git a/grimoire_elk/elk/meetup.py b/grimoire_elk/elk/meetup.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/meetup.py
+++ b/grimoire_elk/elk/meetup.py
@@ -219,7 +219,7 @@ class MeetupEnrich(Enrich):
eitem['type'] = "meetup"
# time_date is when the meetup will take place, the needed one in ... | [enrich][meetup] Fix typo in grimoire_creation_date compute | py |
diff --git a/python/ray/data/dataset.py b/python/ray/data/dataset.py
index <HASH>..<HASH> 100644
--- a/python/ray/data/dataset.py
+++ b/python/ray/data/dataset.py
@@ -2303,6 +2303,7 @@ Dict[str, List[str]]]): The names of the columns
] = None,
prefetch_blocks: int = 0,
batch_size: int = 1,
+ ... | [data] Expose `drop_last` in `to_tf` (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
'pyOpenSSL>=16.2.0',
'pyyaml>=3.12',
'requests>=2.12.4',
- 'responses>=0.5.1',
+ 'responses>=0.5.1,<0.6.1', # 0.6.1 is broken, but already fixed in master
... | Blacklist responses==<I> cause of bugs. (#<I>) | py |
diff --git a/qutepart/syntax/parser.py b/qutepart/syntax/parser.py
index <HASH>..<HASH> 100644
--- a/qutepart/syntax/parser.py
+++ b/qutepart/syntax/parser.py
@@ -36,7 +36,10 @@ class ContextStack:
"""
if len(self._contexts) - 1 < count:
_logger.error("#pop value is too big %d", len(self.... | py-parser: Fix freeze | py |
diff --git a/splinter/driver/webdriver/remote.py b/splinter/driver/webdriver/remote.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/webdriver/remote.py
+++ b/splinter/driver/webdriver/remote.py
@@ -20,8 +20,7 @@ class WebDriver(BaseWebDriver):
def __init__(self, url=DEFAULT_URL, browser='firefox', wait_time... | Fix remote WebDriver to properly pass ability_args to Selenium | py |
diff --git a/pymatgen/analysis/elasticity/elastic.py b/pymatgen/analysis/elasticity/elastic.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/elasticity/elastic.py
+++ b/pymatgen/analysis/elasticity/elastic.py
@@ -495,7 +495,7 @@ def toec_fit(strains, stresses, eq_stress = None, zero_crit=1e-10):
coef1 = ... | fixed bug in TOEC elastic fitting for non-7 stencils | py |
diff --git a/TeamComp/main.py b/TeamComp/main.py
index <HASH>..<HASH> 100644
--- a/TeamComp/main.py
+++ b/TeamComp/main.py
@@ -12,7 +12,7 @@ from persist.store import TierStore
from persist.config import JSONConfigEncoder, datetime_to_dict
from tier import TierSet, TierSeed, update_participants, Tier, Queue, Maps, su... | Created an explicit main function. Renamed the extension of the state to .checkpoint | py |
diff --git a/tests/test_zookeeper.py b/tests/test_zookeeper.py
index <HASH>..<HASH> 100644
--- a/tests/test_zookeeper.py
+++ b/tests/test_zookeeper.py
@@ -56,9 +56,9 @@ class MockKazooClient:
func(*args, **kwargs)
def get(self, path, watch=None):
- if path == '/service/test/no_node':
+ if ... | Fix zookeeper test coverage | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-from distutils.core import setup
+from setuptools import setup
# add dependency for python-bs4
@@ -10,5 +10,6 @@ setup(
author_email='code@jeffreyforman.net',
license='MIT',
packages = ['pybin... | convert to setuptools, and add dependency on bs4.beautifulsoup | py |
diff --git a/dingo/core/__init__.py b/dingo/core/__init__.py
index <HASH>..<HASH> 100644
--- a/dingo/core/__init__.py
+++ b/dingo/core/__init__.py
@@ -835,7 +835,8 @@ class NetworkDingo:
for lv_load_area in grid_district.lv_load_areas():
for lv_grid_district in lv_load_area.lv_grid_distric... | don't export isolated stations to viz | py |
diff --git a/tests/test_flask_buzz.py b/tests/test_flask_buzz.py
index <HASH>..<HASH> 100644
--- a/tests/test_flask_buzz.py
+++ b/tests/test_flask_buzz.py
@@ -1,6 +1,7 @@
import flask
import flask_buzz
import flask_restplus
+import http
import json
import pytest
import re
@@ -18,7 +19,7 @@ class TestFlaskBuzz:
... | Issue #<I>: Fixed broken tests | py |
diff --git a/localshop/apps/packages/views.py b/localshop/apps/packages/views.py
index <HASH>..<HASH> 100644
--- a/localshop/apps/packages/views.py
+++ b/localshop/apps/packages/views.py
@@ -1,4 +1,5 @@
import logging
+from wsgiref.util import FileWrapper
from django.contrib.auth.decorators import login_required, p... | Use wsgiref filewrapper for streaming downloads. | py |
diff --git a/spyderlib/plugins/ipythonconsole.py b/spyderlib/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/ipythonconsole.py
+++ b/spyderlib/plugins/ipythonconsole.py
@@ -785,12 +785,6 @@ class IPythonConsole(SpyderPluginWidget):
def get_clients(self):
"""Return clients li... | IPython Console: Remove more commented code | py |
diff --git a/ndb/model.py b/ndb/model.py
index <HASH>..<HASH> 100644
--- a/ndb/model.py
+++ b/ndb/model.py
@@ -72,6 +72,7 @@ class Model(object):
cls = self.__class__
self._key = key
self._values = {}
+ # TODO: Factor out the following loop so Expando can override it.
for name, value in kwds.iter... | Add a TODO about support for Expando(attr1=val1, attr2=val2, ...). | py |
diff --git a/active_link/templatetags/active_link_tags.py b/active_link/templatetags/active_link_tags.py
index <HASH>..<HASH> 100644
--- a/active_link/templatetags/active_link_tags.py
+++ b/active_link/templatetags/active_link_tags.py
@@ -11,12 +11,13 @@ register = template.Library()
@register.simple_tag(takes_con... | Add support for specifying inactive class | py |
diff --git a/cgutils/cgroup.py b/cgutils/cgroup.py
index <HASH>..<HASH> 100644
--- a/cgutils/cgroup.py
+++ b/cgutils/cgroup.py
@@ -341,6 +341,9 @@ class SubsystemMemory(Subsystem):
'memsw.usage_in_bytes': long,
'stat': SimpleStat,
'numa_stat': NumaStat,
+ 'kmem.tcp.failcnt': long,
+ ... | Support kmem.tcp.* files of memory subsystem | py |
diff --git a/test/test_add_command.py b/test/test_add_command.py
index <HASH>..<HASH> 100644
--- a/test/test_add_command.py
+++ b/test/test_add_command.py
@@ -334,6 +334,16 @@ class AddCommandTest(CommandTest):
self.assertEqual(self.todolist.todo(1).source(), "New todo")
self.assertEqual(self.errors, ... | Add test to add completed items Inspired by issue #<I>. | py |
diff --git a/src/transformers/file_utils.py b/src/transformers/file_utils.py
index <HASH>..<HASH> 100644
--- a/src/transformers/file_utils.py
+++ b/src/transformers/file_utils.py
@@ -827,8 +827,10 @@ def requires_backends(obj, backends):
backends = [backends]
name = obj.__name__ if hasattr(obj, "__name_... | Report only the failed imports in `requires_backends` (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,8 @@ setup(
)],
install_requires=['indy-plenum-dev==1.6.652',
'python-dateutil',
- 'timeout-decorator==0.4.0'],
+ 'timeout-decorator==0.4.0',... | INDY-<I>: Add distro to requires | py |
diff --git a/teslajsonpy/teslaproxy.py b/teslajsonpy/teslaproxy.py
index <HASH>..<HASH> 100644
--- a/teslajsonpy/teslaproxy.py
+++ b/teslajsonpy/teslaproxy.py
@@ -100,8 +100,9 @@ class TeslaProxy(AuthCaptureProxy):
return return_timer_countdown_refresh_html(
max(30 * (self.waf_retr... | fix: increase time for waf retry | py |
diff --git a/src/astral/__init__.py b/src/astral/__init__.py
index <HASH>..<HASH> 100644
--- a/src/astral/__init__.py
+++ b/src/astral/__init__.py
@@ -59,12 +59,13 @@ except ImportError:
__all__ = [
- "LocationInfo",
- "Observer",
+ "Depression",
"SunDirection",
- "latlng_to_float",
+ "Observer... | Re-ordered functions in __all__ | py |
diff --git a/dedupe/clustering.py b/dedupe/clustering.py
index <HASH>..<HASH> 100644
--- a/dedupe/clustering.py
+++ b/dedupe/clustering.py
@@ -57,7 +57,7 @@ def connected_components(edgelist: numpy.ndarray,
yield from _connected_components(edgelist, max_components)
- edgelist._mmap.close()
+ ... | add back a few necessary type ignores | py |
diff --git a/notifications/models.py b/notifications/models.py
index <HASH>..<HASH> 100644
--- a/notifications/models.py
+++ b/notifications/models.py
@@ -23,18 +23,34 @@ class NotificationQuerySet(models.query.QuerySet):
"Return only unread items in the current queryset"
return self.filter(unread=Tru... | Document/clean-up query set API. | py |
diff --git a/json_schema_validator/tests/test_validator.py b/json_schema_validator/tests/test_validator.py
index <HASH>..<HASH> 100644
--- a/json_schema_validator/tests/test_validator.py
+++ b/json_schema_validator/tests/test_validator.py
@@ -107,7 +107,7 @@ class ValidatorFailureTests(TestWithScenarios, TestCase):
... | Fix test suite. Closes: #9 The schema message needs to use the same type as the exception when comparing the string. | py |
diff --git a/test/encrypted_transport.py b/test/encrypted_transport.py
index <HASH>..<HASH> 100755
--- a/test/encrypted_transport.py
+++ b/test/encrypted_transport.py
@@ -336,6 +336,5 @@ class TestSecure(unittest.TestCase):
conn.close()
-
if __name__ == '__main__':
utils.main() | Fixing lint warning. | py |
diff --git a/txaws/server/tests/test_schema.py b/txaws/server/tests/test_schema.py
index <HASH>..<HASH> 100644
--- a/txaws/server/tests/test_schema.py
+++ b/txaws/server/tests/test_schema.py
@@ -10,7 +10,7 @@ from txaws.server.exception import APIError
from txaws.server.schema import (
Arguments, Bool, Date, Enum... | address jseutter's comment - pep8 and pyflakes fixes in test_schema.py | py |
diff --git a/billy/importers/events.py b/billy/importers/events.py
index <HASH>..<HASH> 100644
--- a/billy/importers/events.py
+++ b/billy/importers/events.py
@@ -102,6 +102,7 @@ def import_events(abbr, data_dir, import_actions=False):
# also a committee considering a bill from the other chamber, or
... | save fixed bill_id on related bills | py |
diff --git a/afsk/ax25.py b/afsk/ax25.py
index <HASH>..<HASH> 100644
--- a/afsk/ax25.py
+++ b/afsk/ax25.py
@@ -254,7 +254,7 @@ def main(arguments=None):
digipeaters=args.digipeaters.split(b','),
)
- print("Sending packet: '{0}'".format(packet))
+ logger.info(r"Sending packet: '{0}'".format(packet))
logger.debu... | Convert print statement to logging call Fixes broken STDOUT Wave file output. | py |
diff --git a/microbot/models/bot.py b/microbot/models/bot.py
index <HASH>..<HASH> 100644
--- a/microbot/models/bot.py
+++ b/microbot/models/bot.py
@@ -319,8 +319,8 @@ class KikBot(IntegrationBot):
msg.keyboards.append(SuggestedResponseKeyboard(to=to, responses=keyboard))
try:
- logger.deb... | enhance logs form kik hook | py |
diff --git a/test/test_injection.py b/test/test_injection.py
index <HASH>..<HASH> 100644
--- a/test/test_injection.py
+++ b/test/test_injection.py
@@ -80,7 +80,7 @@ class MyInjection(object):
row.taper = self.taper
row.numrel_mode_min = 0
row.numrel_mode_max = 0
- row.numrel_data = 0
+... | numrel_data should be set either to None or "", if you DO NOT want to perform numrel injections | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -549,8 +549,14 @@ class State(object):
possible module type, e.g. a python, pyx, or .so. Always refresh if the
function is recurse, since that can lay down anything.
'''
+ ... | Allow salt modules to be refreshed on demand. As an example for the above feature: ```yaml python-pip: cmd: - run - cwd: / - name: easy_install --script-dir=/usr/bin -U pip virtualenv - reload_modules: true ``` See the last line? If no exception occurs in this state, after it's execution, salt **wi... | py |
diff --git a/ggplot/utils/utils.py b/ggplot/utils/utils.py
index <HASH>..<HASH> 100644
--- a/ggplot/utils/utils.py
+++ b/ggplot/utils/utils.py
@@ -504,7 +504,7 @@ def remove_missing(df, na_rm=False, vars=None, name='', finite=False):
if finite:
lst = [np.inf, -np.inf]
- to_replace = dict((v, lst)... | Accurate file & line no. for missing values | py |
diff --git a/raven/contrib/django/client.py b/raven/contrib/django/client.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/django/client.py
+++ b/raven/contrib/django/client.py
@@ -64,9 +64,9 @@ class DjangoClient(Client):
uri = '%s://%s%s' % (scheme, host, request.path)
if request.method != '... | Workaround the hasattr behavior change between python 2 and 3. | py |
diff --git a/Lib/ufo2fdk/makeotfParts.py b/Lib/ufo2fdk/makeotfParts.py
index <HASH>..<HASH> 100644
--- a/Lib/ufo2fdk/makeotfParts.py
+++ b/Lib/ufo2fdk/makeotfParts.py
@@ -146,11 +146,11 @@ class MakeOTFPartsCompiler(object):
if glyphName in self.font and self.font[glyphName].unicode is not None:
... | Correct glyphOrder file generation. | py |
diff --git a/tests/micropython/extreme_exc.py b/tests/micropython/extreme_exc.py
index <HASH>..<HASH> 100644
--- a/tests/micropython/extreme_exc.py
+++ b/tests/micropython/extreme_exc.py
@@ -126,8 +126,8 @@ def main():
)
except Exception as er:
e = er
- lst[0][0] = None
- lst = None
+ wh... | tests/micropython: Fully unlink nested list in extreme exc test. To make sure there are no dangling references to the lists, and the GC can reclaim heap memory. | py |
diff --git a/tests/lax_test.py b/tests/lax_test.py
index <HASH>..<HASH> 100644
--- a/tests/lax_test.py
+++ b/tests/lax_test.py
@@ -489,6 +489,7 @@ class LaxTest(jtu.JaxTestCase):
# TODO(mattjj): test conv_general_dilated against numpy
+ @jtu.skip_on_devices("gpu") # b/147488740
def testConv0DIsDot(self):
... | Disable failing GPU test for now pending XLA fix. | py |
diff --git a/tests/db_routers_unittest.py b/tests/db_routers_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/db_routers_unittest.py
+++ b/tests/db_routers_unittest.py
@@ -113,7 +113,7 @@ class OQRouterTestCase(unittest.TestCase):
For each model in the 'uiapi' schema, test for proper db routing
for... | Added test to verify InputSet is routed as expected. Former-commit-id: c<I>c<I>ab1ed8d<I>d0dbde<I>d<I>eb0e<I> | py |
diff --git a/vdom/core.py b/vdom/core.py
index <HASH>..<HASH> 100644
--- a/vdom/core.py
+++ b/vdom/core.py
@@ -202,8 +202,7 @@ class VDOM(object):
"""
Return inline CSS from CSS key / values
"""
- return "; ".join(['{}: {}'.format(k, v)
- for k, v in convert_st... | Change to create_style_key; apply to key only, add example to docstring | py |
diff --git a/examples/educational/coordinate_system.py b/examples/educational/coordinate_system.py
index <HASH>..<HASH> 100644
--- a/examples/educational/coordinate_system.py
+++ b/examples/educational/coordinate_system.py
@@ -101,13 +101,13 @@ coordinate systems:
.. note::
- In a two-layer scenario with only one... | Add improved note (#<I>) | py |
diff --git a/utilz/setup_utils.py b/utilz/setup_utils.py
index <HASH>..<HASH> 100644
--- a/utilz/setup_utils.py
+++ b/utilz/setup_utils.py
@@ -23,7 +23,7 @@ def init(name, package_name, setup_py_fpath, kwargs=None):
sys.exit()
if cmd == 'publish':
- run_cmdl('git clean -dfx && pyt... | setup_utils publish: remove clean repo commmand | py |
diff --git a/pyforms/gui/Controls/ControlList.py b/pyforms/gui/Controls/ControlList.py
index <HASH>..<HASH> 100755
--- a/pyforms/gui/Controls/ControlList.py
+++ b/pyforms/gui/Controls/ControlList.py
@@ -188,6 +188,14 @@ class ControlList(ControlBase, QWidget):
def get_cell(self, column, row):
return self.tableWidg... | ControlList: adds auxiliary method for enable/disable sorting | py |
diff --git a/tests/test_proliphix.py b/tests/test_proliphix.py
index <HASH>..<HASH> 100755
--- a/tests/test_proliphix.py
+++ b/tests/test_proliphix.py
@@ -28,8 +28,11 @@ class TestProliphix(unittest.TestCase):
self.assertEqual('4.1.13', px._get_oid('AverageTemp'))
self.assertEqual(None, px._get_oid('A... | Fix unit tests now that clock drift is added | py |
diff --git a/src/setuptools_scm/version.py b/src/setuptools_scm/version.py
index <HASH>..<HASH> 100644
--- a/src/setuptools_scm/version.py
+++ b/src/setuptools_scm/version.py
@@ -16,7 +16,7 @@ SEMVER_LEN = 3
def _parse_version_tag(tag, config):
- tagstring = tag if not isinstance(tag, str) else str(tag)
+ ta... | Fix TypeError with setuptools_scm_git_archive | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3187,8 +3187,6 @@ def _make_and(e1, e2):
return e2
if e2 is None or e2 == "y":
return e1
- if e1 == "n" or e2 == "n":
- return "n"
# Prefer to merge/update argument ... | Remove two seldom-used expression simplifications. These never trigger for the x<I> Kconfigs, wasting time instead. | py |
diff --git a/salt/modules/mount.py b/salt/modules/mount.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mount.py
+++ b/salt/modules/mount.py
@@ -277,6 +277,7 @@ def fstab(config='/etc/fstab'):
for line in ifile:
try:
entry = _fstab_entry.dict_from_line( line, _fstab_entry.compat... | Updating modules/mount.py (mount.fstab) to produce an array for opts, rather than the opts string literal. Allows mount to pass unit tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ setup(
include_package_data=True,
install_requires=[
'django>=1.4.2',
- 'pillow<4' if sys.version < (2, 7) else 'pillow',
+ 'pillow<4' if sys.version_info < (2, 7) else 'pillow',... | Fix version check in setup.py The tests are failing because on Python3 type comparison became stricter. ``sys.version`` is a string, ``sys.version_info`` is a tuple. | py |
diff --git a/cloudsmith_cli/core/api/files.py b/cloudsmith_cli/core/api/files.py
index <HASH>..<HASH> 100644
--- a/cloudsmith_cli/core/api/files.py
+++ b/cloudsmith_cli/core/api/files.py
@@ -6,6 +6,7 @@ import os
import click
import cloudsmith_api
import requests
+import six
from requests_toolbelt import MultipartE... | Fix for py3 compatibility in files API code Use six for python3 compatibility (@lskillen) | py |
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index <HASH>..<HASH> 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -1020,7 +1020,8 @@ class ProjectTag(ObjectDeleteMixin, RESTObject):
GitlabCreateError: If the server fails to create the release
GitlabUpdateError: If t... | Tags release description: support / in tag names | py |
diff --git a/salt/daemons/masterapi.py b/salt/daemons/masterapi.py
index <HASH>..<HASH> 100644
--- a/salt/daemons/masterapi.py
+++ b/salt/daemons/masterapi.py
@@ -398,6 +398,9 @@ class RemoteFuncs(object):
# If the command will make a recursive publish don't run
if re.match('publish.*', load['fun']):
... | Disable pillar/compound matching for peer interface, master-side | py |
diff --git a/tornado/options.py b/tornado/options.py
index <HASH>..<HASH> 100644
--- a/tornado/options.py
+++ b/tornado/options.py
@@ -354,12 +354,17 @@ class _LogFormatter(logging.Formatter):
logging.Formatter.__init__(self, *args, **kwargs)
self._color = color
if color:
- # The c... | Add a version check for the curses unicode hack so it won't break when python <I> or <I> are released. Closes #<I>. | py |
diff --git a/airflow/hooks/hive_hooks.py b/airflow/hooks/hive_hooks.py
index <HASH>..<HASH> 100644
--- a/airflow/hooks/hive_hooks.py
+++ b/airflow/hooks/hive_hooks.py
@@ -18,7 +18,7 @@ from airflow.utils import AirflowException
from airflow.hooks.base_hook import BaseHook
from airflow.utils import TemporaryDirectory
... | Use short hand for security.utils | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -53,7 +53,7 @@ latex_elements = {}
latex_documents = [
(master_doc, 'HTTPretty.tex', 'HTTPretty Documentation',
- 'Gabriel Falcão', 'manual'),
+ 'Gabriel Falcao', 'ma... | fix docs/source/conf.py | py |
diff --git a/flink-python/pyflink/datastream/tests/test_data_stream.py b/flink-python/pyflink/datastream/tests/test_data_stream.py
index <HASH>..<HASH> 100644
--- a/flink-python/pyflink/datastream/tests/test_data_stream.py
+++ b/flink-python/pyflink/datastream/tests/test_data_stream.py
@@ -1156,6 +1156,14 @@ class Proc... | [FLINK-<I>][python] Fix LIST type in Python DataStream API This closes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,6 +46,7 @@ setup(
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
... | Added python<I> version to supported versions list. All tests passed on this configuration: platform linux -- Python <I>, pytest-<I>, py-<I>, pluggy-<I> | py |
diff --git a/torf/_torrent.py b/torf/_torrent.py
index <HASH>..<HASH> 100644
--- a/torf/_torrent.py
+++ b/torf/_torrent.py
@@ -714,7 +714,7 @@ class Torrent():
3. The number of pieces that have been hashed (:class:`int`)
4. The total number of pieces (:class:`int`)
- If `callback` ret... | Torrent.generate(): Highlight 'None' properly in docstring | py |
diff --git a/spyder_notebook/tests/test_plugin.py b/spyder_notebook/tests/test_plugin.py
index <HASH>..<HASH> 100644
--- a/spyder_notebook/tests/test_plugin.py
+++ b/spyder_notebook/tests/test_plugin.py
@@ -107,7 +107,6 @@ def notebook(qtbot):
notebook_plugin = NotebookPlugin(None, testing=True)
qtbot.addWidg... | Remove .show() from test This causes a segfault when running the test locally and does not seem necessary for testing. | py |
diff --git a/vaex/dataset.py b/vaex/dataset.py
index <HASH>..<HASH> 100644
--- a/vaex/dataset.py
+++ b/vaex/dataset.py
@@ -2298,7 +2298,8 @@ class Dataset(object):
total_grid[i,j,:,:] = grid[:,None,...]
labels["what"] = what_labels
else:
- total_grid = np.broadcast_to(grid, (1,) * 4 + grid.shape)
+ dim... | grid argument of plot can have multiple dimensions | py |
diff --git a/pyrogram/client/storage/file_storage.py b/pyrogram/client/storage/file_storage.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/storage/file_storage.py
+++ b/pyrogram/client/storage/file_storage.py
@@ -67,6 +67,17 @@ class FileStorage(SQLiteStorage):
# noinspection PyTypeChecker
self.... | Implement a storage update mechanism (for FileStorage) The idea is pretty simple: get the current database version and for each older version, do what needs to be done in order to get to the next version state. This will make schema changes transparent to the user in case they are needed. | py |
diff --git a/subliminal/score.py b/subliminal/score.py
index <HASH>..<HASH> 100755
--- a/subliminal/score.py
+++ b/subliminal/score.py
@@ -44,7 +44,7 @@ movie_scores = {'hash': 119, 'title': 60, 'year': 30, 'release_group': 15,
'format': 7, 'audio_codec': 3, 'resolution': 2, 'video_codec': 2, 'hearing_... | Add SVA and AVS to equivalent release groups (#<I>) Additional equivalent release groups. See <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
"""
- Properties: Fancy properties for Python.
+ properties: Fancy properties for Python.
"""
import numpy as np
@@ -69,7 +69,7 @@ with open("README.rst") as f:
LONG_DESCRIPT... | lowercase name (Properties --> properties) | py |
diff --git a/py3status/modules/volume_status.py b/py3status/modules/volume_status.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/volume_status.py
+++ b/py3status/modules/volume_status.py
@@ -26,6 +26,10 @@ Configuration parameters:
(default False)
max_volume: Allow the volume to be increased past ... | volume_status module: add start_delay to address issue #<I> (#<I>) | py |
diff --git a/owslib/swe/sensor/sml.py b/owslib/swe/sensor/sml.py
index <HASH>..<HASH> 100644
--- a/owslib/swe/sensor/sml.py
+++ b/owslib/swe/sensor/sml.py
@@ -45,12 +45,14 @@ class PropertyGroup(object):
self.capabilities = {}
for cap in element.findall(nsp('sml:capabilities')):
name = te... | Added a bit of safety to SML parsing | py |
diff --git a/salt/modules/freebsdpkg.py b/salt/modules/freebsdpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/freebsdpkg.py
+++ b/salt/modules/freebsdpkg.py
@@ -465,7 +465,7 @@ def _rehash():
Recomputes internal hash table for the PATH variable. Use whenever a new
command is created during the current s... | environ.get has no output_loglevel commit <I>a<I>fa<I>ba<I>e8b<I>fb6bede2e3ea6a<I> changed this call from `cmd.run` to `environ.get`, but `output_loglevel` remained, leading to stacktraces | py |
diff --git a/spyder/widgets/tests/test_pathmanager.py b/spyder/widgets/tests/test_pathmanager.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/tests/test_pathmanager.py
+++ b/spyder/widgets/tests/test_pathmanager.py
@@ -19,6 +19,7 @@ from qtpy.QtCore import Qt
# Local imports
from spyder.py3compat import PY3
from... | Skip this test if pywin<I> is not present Skip this test if pywin<I> is not present because it's not part of Spyder listed dependencies | py |
diff --git a/examples/basic_nest/make_nest.py b/examples/basic_nest/make_nest.py
index <HASH>..<HASH> 100755
--- a/examples/basic_nest/make_nest.py
+++ b/examples/basic_nest/make_nest.py
@@ -1,18 +1,17 @@
#!/usr/bin/env python
-import collections
+import glob
import os
import os.path
-import sys
-from nestly impor... | Update basic_nest for new API | py |
diff --git a/nodeshot/open311/views.py b/nodeshot/open311/views.py
index <HASH>..<HASH> 100644
--- a/nodeshot/open311/views.py
+++ b/nodeshot/open311/views.py
@@ -145,7 +145,7 @@ class ServiceRequests(generics.ListCreateAPIView):
}
def get(self, request, *args, **kwargs):
-
+ """ Retr... | Updated Open <I> API methods descriptions | py |
diff --git a/salt/modules/nova.py b/salt/modules/nova.py
index <HASH>..<HASH> 100644
--- a/salt/modules/nova.py
+++ b/salt/modules/nova.py
@@ -11,6 +11,8 @@ Module for handling openstack nova calls.
keystone.password: verybadpass
keystone.tenant: admin
keystone.auth_url: 'http://127.0.0.1:500... | Add comment for region_name to docstring | py |
diff --git a/pymongo/pool.py b/pymongo/pool.py
index <HASH>..<HASH> 100644
--- a/pymongo/pool.py
+++ b/pymongo/pool.py
@@ -233,7 +233,7 @@ class BasePool(object):
checked_sock = self._check_closed(req_state, pair)
if checked_sock != req_state:
- self._set_request_state(req_sta... | Bugfixes: Pool properly discards sockets if it detects they've died PYTHON-<I> | py |
diff --git a/moto/ec2/models.py b/moto/ec2/models.py
index <HASH>..<HASH> 100644
--- a/moto/ec2/models.py
+++ b/moto/ec2/models.py
@@ -1949,11 +1949,12 @@ class ElasticAddress(object):
properties = cloudformation_json.get('Properties')
instance_id = None
if properties:
+ domain=pro... | default eip domain to 'standard' for cloudformation creations | py |
diff --git a/trollimage/colormap.py b/trollimage/colormap.py
index <HASH>..<HASH> 100644
--- a/trollimage/colormap.py
+++ b/trollimage/colormap.py
@@ -272,7 +272,7 @@ class Colormap(object):
if num_bands1 == num_bands2:
return cmap1, cmap2
if 4 in (num_bands1, num_bands2):
- re... | Fix typo in Colormap color normalization | py |
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -10,7 +10,6 @@ Support for APT (Advanced Packaging Tool)
For repository management, the ``python-apt`` package must be installed.
"""
-
import copy
import datet... | Drop Py2 and six on salt/modules/aptpkg.py | py |
diff --git a/keyring/tests/test_backend.py b/keyring/tests/test_backend.py
index <HASH>..<HASH> 100644
--- a/keyring/tests/test_backend.py
+++ b/keyring/tests/test_backend.py
@@ -145,11 +145,9 @@ class BackendBasicTests:
self.set_password('service1', 'user2', 'password2')
cred = keyring.get_credenti... | Fix handling of None case on macOS | py |
diff --git a/wallace/models.py b/wallace/models.py
index <HASH>..<HASH> 100644
--- a/wallace/models.py
+++ b/wallace/models.py
@@ -106,7 +106,8 @@ class Node(Base):
self.transmit(info, vector.destination)
def update(self, info):
- pass
+ raise NotImplementedError(
+ "The upd... | changed node update method now raises not implemented error | py |
diff --git a/zencoder/__init__.py b/zencoder/__init__.py
index <HASH>..<HASH> 100644
--- a/zencoder/__init__.py
+++ b/zencoder/__init__.py
@@ -0,0 +1 @@
+from zencoder import Zencoder | put the Zencoder object at the top level of the module | py |
diff --git a/examples/top_artists.py b/examples/top_artists.py
index <HASH>..<HASH> 100755
--- a/examples/top_artists.py
+++ b/examples/top_artists.py
@@ -22,9 +22,9 @@ class Streams(luigi.Task):
date = luigi.DateParameter()
def run(self):
- with open(self.output(), 'w') as output:
+ with self... | Fix the top_artists example | py |
diff --git a/splunklib/binding.py b/splunklib/binding.py
index <HASH>..<HASH> 100644
--- a/splunklib/binding.py
+++ b/splunklib/binding.py
@@ -466,7 +466,7 @@ class Context(object):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if self.scheme == "https":
sock = ssl.wrap_socket(... | Changed the socket binding to be more efficient on Windows. | py |
diff --git a/holidays.py b/holidays.py
index <HASH>..<HASH> 100644
--- a/holidays.py
+++ b/holidays.py
@@ -340,7 +340,7 @@ class Canada(HolidayBase):
self[date(year, 8, 1) + rd(weekday=MO)] = "British Columbia Day"
elif self.prov in ('NB') and year >= 1900:
# https://en.wikipedia.org/... | Fix typo in "New Brunswick Day" holiday name | py |
diff --git a/bcbio/structural/lumpy.py b/bcbio/structural/lumpy.py
index <HASH>..<HASH> 100644
--- a/bcbio/structural/lumpy.py
+++ b/bcbio/structural/lumpy.py
@@ -40,7 +40,10 @@ def _run_lumpy(full_bams, sr_bams, disc_bams, work_dir, items):
disc_bams = ",".join(disc_bams)
exclude = "-... | Ensure speedseq calls to lumpy python scripts use installed bcbio python with dependencies. Fixes #<I> | py |
diff --git a/icekit/plugins/image/tests.py b/icekit/plugins/image/tests.py
index <HASH>..<HASH> 100644
--- a/icekit/plugins/image/tests.py
+++ b/icekit/plugins/image/tests.py
@@ -1,3 +1,5 @@
+from unittest import skip
+
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import Cont... | Skip test that fails because the test fixture isn't a real image file. | py |
diff --git a/salt/modules/timezone.py b/salt/modules/timezone.py
index <HASH>..<HASH> 100644
--- a/salt/modules/timezone.py
+++ b/salt/modules/timezone.py
@@ -127,8 +127,15 @@ def _get_zone_etc_localtime():
def _get_zone_etc_timezone():
- with salt.utils.fopen('/etc/timezone', 'r') as fp_:
- return fp_.r... | timezone: Don't assume /etc/timezone exists Sometimes /etc/timezone might not exist | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.