diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/shoebot/core/drawqueue_sink.py b/shoebot/core/drawqueue_sink.py
index <HASH>..<HASH> 100644
--- a/shoebot/core/drawqueue_sink.py
+++ b/shoebot/core/drawqueue_sink.py
@@ -20,6 +20,7 @@ class DrawQueueSink(object):
'''
r_context = self.create_rcontext(size, frame)
drawqueue.render(... | Tell rendercontext we have finished, so pngs get rendered. | py |
diff --git a/mapchete/io/vector.py b/mapchete/io/vector.py
index <HASH>..<HASH> 100644
--- a/mapchete/io/vector.py
+++ b/mapchete/io/vector.py
@@ -122,6 +122,8 @@ def _validated_crs(crs):
return CRS().from_epsg(int(crs))
elif isinstance(crs, int):
return CRS().from_epsg(crs)
+ elif isinstance(... | also enable parsing CRS represented as dict | py |
diff --git a/caravel/views.py b/caravel/views.py
index <HASH>..<HASH> 100644
--- a/caravel/views.py
+++ b/caravel/views.py
@@ -78,6 +78,9 @@ class TableColumnInlineView(CompactCRUDMixin, CaravelModelView): # noqa
"Whether to make this column available as a "
"[Time Granularity] option, column... | Adding expression column description in the CRUD | py |
diff --git a/salt/utils/minions.py b/salt/utils/minions.py
index <HASH>..<HASH> 100644
--- a/salt/utils/minions.py
+++ b/salt/utils/minions.py
@@ -101,7 +101,7 @@ class CkMinions(object):
salt.utils.fopen(datap)
).get('grains')
comps = expr.rsplit(':', 1)
- ... | update minions file for traverse_dict changes | py |
diff --git a/pip_accel/__init__.py b/pip_accel/__init__.py
index <HASH>..<HASH> 100644
--- a/pip_accel/__init__.py
+++ b/pip_accel/__init__.py
@@ -149,8 +149,8 @@ def main():
logger.fatal("pip reported unrecoverable installation errors. Please fix and rerun!")
sys.exit(1)
finally:
- # Always... | Fix code indentation of recent changes | py |
diff --git a/openquake/commands/renumber_sources.py b/openquake/commands/renumber_sources.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/renumber_sources.py
+++ b/openquake/commands/renumber_sources.py
@@ -33,6 +33,7 @@ def renumber_sources(smlt_file):
logging.basicConfig(level=logging.INFO)
number =... | Added log [skip CI] Former-commit-id: 4f6e<I>bc<I>ab3d7f<I>d<I> | py |
diff --git a/openquake/calculators/export/hazard.py b/openquake/calculators/export/hazard.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/export/hazard.py
+++ b/openquake/calculators/export/hazard.py
@@ -113,7 +113,8 @@ def export_ses_csv(ekey, dstore):
trt, r['strike'], r['dip'], r['rake']... | Saved the investigation_time in ruptures.csv | py |
diff --git a/tests/test_incident.py b/tests/test_incident.py
index <HASH>..<HASH> 100644
--- a/tests/test_incident.py
+++ b/tests/test_incident.py
@@ -62,6 +62,21 @@ class TestIncident(unittest.TestCase):
self.assertEqual(self.client.default_payload, {})
@httpretty.activate
+ def test_invalid_query_t... | Added invalid_query_type test | py |
diff --git a/third_party/stdlib/unittest_case.py b/third_party/stdlib/unittest_case.py
index <HASH>..<HASH> 100644
--- a/third_party/stdlib/unittest_case.py
+++ b/third_party/stdlib/unittest_case.py
@@ -684,7 +684,8 @@ class TestCase(object):
seq1_repr = seq1_repr[:30] + '...'
if len(seq2_... | Substitute for use of str.capitalize(). (#<I>) | py |
diff --git a/bulbs/feeds/serializers.py b/bulbs/feeds/serializers.py
index <HASH>..<HASH> 100644
--- a/bulbs/feeds/serializers.py
+++ b/bulbs/feeds/serializers.py
@@ -41,8 +41,9 @@ class GlanceContentSerializer(serializers.Serializer):
"slug": obj.slug,
"featured_media": GlanceFeaturedMediaSer... | Glance Feed: TODO cleanup | py |
diff --git a/pymongo/cursor.py b/pymongo/cursor.py
index <HASH>..<HASH> 100644
--- a/pymongo/cursor.py
+++ b/pymongo/cursor.py
@@ -626,8 +626,16 @@ class Cursor(object):
kwargs["_connection_to_use"] = self.__connection_id
kwargs.update(self.__kwargs)
- response = db.connection._send_messa... | Avoid _pinValue assertion on mongod PYTHON-<I> | py |
diff --git a/amqplib/client_0_8/transport.py b/amqplib/client_0_8/transport.py
index <HASH>..<HASH> 100644
--- a/amqplib/client_0_8/transport.py
+++ b/amqplib/client_0_8/transport.py
@@ -82,9 +82,8 @@ class _AbstractTransport(object):
"""
size = len(payload)
- self._write(pack('>BHI', frame_t... | Send frames to the TCP socket with a single call instead of 3, this small change causes the unittests to run over 2x faster on my laptop. | py |
diff --git a/pyalveo/pyalveo.py b/pyalveo/pyalveo.py
index <HASH>..<HASH> 100644
--- a/pyalveo/pyalveo.py
+++ b/pyalveo/pyalveo.py
@@ -1110,12 +1110,15 @@ class Client(object):
:param displaydoc: if True, make this the display document for the item
:type displaydoc: Boolean
+
+ :param... | Update for uploading document and setting it's name | py |
diff --git a/bitmerchant/wallet/keys.py b/bitmerchant/wallet/keys.py
index <HASH>..<HASH> 100644
--- a/bitmerchant/wallet/keys.py
+++ b/bitmerchant/wallet/keys.py
@@ -316,10 +316,11 @@ class PublicKey(Key):
p = curve.p()
alpha = (pow(x, 3, p) + curve.a() * x + curve.b()) % p
beta ... | Fix insidious bug for restoring from public keys | py |
diff --git a/slave/transport.py b/slave/transport.py
index <HASH>..<HASH> 100755
--- a/slave/transport.py
+++ b/slave/transport.py
@@ -297,7 +297,12 @@ try:
self._serial.write(data)
def __read__(self, num_bytes):
- return self._serial.read(num_bytes)
+ # The serial.SerialTi... | Added propper handling of reading timeouts in `transport.Serial` class. | py |
diff --git a/evm/estimators/gas.py b/evm/estimators/gas.py
index <HASH>..<HASH> 100644
--- a/evm/estimators/gas.py
+++ b/evm/estimators/gas.py
@@ -9,16 +9,12 @@ from evm.utils.spoof import (
def _get_computation_error(state, transaction):
- snapshot = state.snapshot()
- try:
- computation = state.do_c... | remove extra snapshot/revert that isn't needed for gas estimation | 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
@@ -139,12 +139,12 @@ todo_include_todos = True
#html_theme = 'alabaster'
-try:
- import sphinx_rtd_theme
- html_theme = "sphinx_rtd_theme"
- html_theme_path = [sphinx_rtd_theme.ge... | fix: rtd theme should not be enabled by default (does not work with rendering ipywidgets locally) | py |
diff --git a/mopidy_youtube/backend.py b/mopidy_youtube/backend.py
index <HASH>..<HASH> 100644
--- a/mopidy_youtube/backend.py
+++ b/mopidy_youtube/backend.py
@@ -8,10 +8,11 @@ import unicodedata
from multiprocessing.pool import ThreadPool
from urlparse import parse_qs, urlparse
-from mopidy import backend
+from mo... | check to see if google API key is valid and raise exception if not | py |
diff --git a/a10_neutron_lbaas/neutron_ext/extensions/a10DeviceInstance.py b/a10_neutron_lbaas/neutron_ext/extensions/a10DeviceInstance.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas/neutron_ext/extensions/a10DeviceInstance.py
+++ b/a10_neutron_lbaas/neutron_ext/extensions/a10DeviceInstance.py
@@ -62,7 +62,7 @@... | Particularly embarrassing occurrence of 'appliance' corrected | py |
diff --git a/examples/comment/reply_to_media_comments.py b/examples/comment/reply_to_media_comments.py
index <HASH>..<HASH> 100644
--- a/examples/comment/reply_to_media_comments.py
+++ b/examples/comment/reply_to_media_comments.py
@@ -54,7 +54,7 @@ for comment in tqdm(comments):
commenter = comment['user']['userna... | Changed line <I> checking sys.version_info major | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -62,5 +62,5 @@ setup(
py_modules=["web3utils"],
# https://packaging.python.org/en/latest/requirements.html
- install_requires=['psutil>5,<6'],
+ install_requires=['psutil>5,<6', 'web3==3.10.0'],
) | web3 is definitely required web3 does not seem to use semantic versioning. In order to avoid incompatibility issues, pin directly to a specific version. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,8 +11,7 @@ setup(name='hamlpy',
keywords = 'haml django converter',
url = 'http://github.com/jessemiller/HamlPy',
license = 'MIT',
- requires = [
- 'django',
+ install_requires = [
... | Fix setup.py to install pygments dependency | py |
diff --git a/tests/unit/test_meta.py b/tests/unit/test_meta.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_meta.py
+++ b/tests/unit/test_meta.py
@@ -36,14 +36,14 @@ class MetaImageTest(unittest.TestCase):
print("Created: {}".format(cls._temp_path))
@my_vcr.use_cassette('tests/unit/cassettes/test_m... | fixing test for clip pxbounds | py |
diff --git a/gspread/v4/client.py b/gspread/v4/client.py
index <HASH>..<HASH> 100644
--- a/gspread/v4/client.py
+++ b/gspread/v4/client.py
@@ -73,12 +73,23 @@ class Client(BaseClient):
raise APIError(response)
def list_spreadsheet_files(self):
- url = (
- "https://www.googleapis.co... | Fetch all spreadsheets in Spreadsheet.list_spreadsheet_files | py |
diff --git a/hooks/pre_commit_checks.py b/hooks/pre_commit_checks.py
index <HASH>..<HASH> 100644
--- a/hooks/pre_commit_checks.py
+++ b/hooks/pre_commit_checks.py
@@ -125,10 +125,10 @@ def _CheckCopyrightNonThirdParty(input_api):
def _Check(input_api, license_re, sources):
bad_files = []
for f in sources:
+ i... | Don't search for copyright headers in ignored files At the moment, ignored files are skipped after they fail the copyright header check, which can be quite slow in some cases (e.g. test files). This patch modifies the code to not search for copyright headers in ignored files at all. R=<EMAIL> Review URL: <URL> | py |
diff --git a/vasppy/poscar.py b/vasppy/poscar.py
index <HASH>..<HASH> 100644
--- a/vasppy/poscar.py
+++ b/vasppy/poscar.py
@@ -147,7 +147,7 @@ class Poscar:
[ print( ''.join( [' {: .10f}'.format( element ) for element in row ] ) ) for row in self.cell.matrix ]
print( ' '.join( self.atoms ) )... | Fixed bug in Poscar output handling selective dynamics | py |
diff --git a/helpers.py b/helpers.py
index <HASH>..<HASH> 100644
--- a/helpers.py
+++ b/helpers.py
@@ -212,7 +212,7 @@ def find_app_by_short_name(short_name, pbclient):
return response[0]
except exceptions.ConnectionError:
raise
- except ProjectNotFound:
+ except:
raise | Capture all exceptions and raise them. | py |
diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/install.py
+++ b/ceph_deploy/install.py
@@ -85,8 +85,7 @@ def install(args):
if args.repo:
return install_repo(args)
- if args.nogpgcheck:
- gpgcheck = 0
+ gpgcheck = 0 if args.nogpgch... | [RM-<I>] install: define gpgcheck always | py |
diff --git a/visidata/addons/pyobj.py b/visidata/addons/pyobj.py
index <HASH>..<HASH> 100644
--- a/visidata/addons/pyobj.py
+++ b/visidata/addons/pyobj.py
@@ -3,8 +3,9 @@ from visidata import *
option('pyobj_show_hidden', False, 'show methods and _private properties')
globalCommand('^X', 'expr = input("eval: ", "ex... | ^Y now pushes sheet of cursorRow (was ^A); z^Y pushes cursorValue | py |
diff --git a/arangodb/orm/fields.py b/arangodb/orm/fields.py
index <HASH>..<HASH> 100644
--- a/arangodb/orm/fields.py
+++ b/arangodb/orm/fields.py
@@ -449,10 +449,13 @@ class DatetimeField(ModelField):
"""
"""
- if self.time and not self.null:
- return u'%s' % self.time.strftime(Da... | Fixing handling with None and not None values | py |
diff --git a/src/sos/utils.py b/src/sos/utils.py
index <HASH>..<HASH> 100644
--- a/src/sos/utils.py
+++ b/src/sos/utils.py
@@ -921,7 +921,8 @@ class SlotManager(object):
self.lock_file = os.path.join(os.path.expanduser('~'), '.sos', f'manager_{manager_id}.lck')
self.slot_file = os.path.join(os.path.ex... | Try to protect the lock file when SlotManger is created #<I> | py |
diff --git a/tests/wipy/time.py b/tests/wipy/time.py
index <HASH>..<HASH> 100644
--- a/tests/wipy/time.py
+++ b/tests/wipy/time.py
@@ -61,12 +61,12 @@ spot_test(-1072915201, (1965, 12, 31, 23, 59, 59, 4, 365))
t1 = time.time()
time.sleep(2)
t2 = time.time()
-print(time.ticks_diff(t1, t2) == 2)
+print(abs(time.ticks... | tests/wipy: Improve robustness of time test. | py |
diff --git a/satpy/writers/cf_writer.py b/satpy/writers/cf_writer.py
index <HASH>..<HASH> 100644
--- a/satpy/writers/cf_writer.py
+++ b/satpy/writers/cf_writer.py
@@ -208,6 +208,9 @@ def _encode_nc(obj):
elif isinstance(obj, np.void):
return tuple(obj)
elif isinstance(obj, np.ndarray):
+ if no... | Convert array of booleans to array of strings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -110,10 +110,10 @@ setup(
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.5',
... | Add Python <I> to trove classifiers (#<I>) | py |
diff --git a/pandocfilters.py b/pandocfilters.py
index <HASH>..<HASH> 100755
--- a/pandocfilters.py
+++ b/pandocfilters.py
@@ -13,27 +13,30 @@ import io
import json
import os
import sys
+import atexit
+import shutil
+import tempfile
# some utility-functions: make it easier to create your own filters
-def ge... | Create temporary directory in a more safe manner. Also make sure the temporary directory gets removed at the end of the script, unless prohibited. | py |
diff --git a/chess/syzygy.py b/chess/syzygy.py
index <HASH>..<HASH> 100644
--- a/chess/syzygy.py
+++ b/chess/syzygy.py
@@ -1257,6 +1257,9 @@ class Tablebases(object):
"""
num = 0
+ if not os.path.isdir(directory):
+ raise IOError("not a tablebase directory: {0}".format(repr(directo... | Let syzygy open_directory check for existence | py |
diff --git a/tests/test_ytarray.py b/tests/test_ytarray.py
index <HASH>..<HASH> 100644
--- a/tests/test_ytarray.py
+++ b/tests/test_ytarray.py
@@ -42,6 +42,8 @@ from yt.testing import fake_random_ds, requires_module
from yt.funcs import fix_length
from yt.units.unit_symbols import \
cm, m, g
+from yt.utilities.p... | Add a test to ensure no-op in-place conversions of dimensionless quantities is really a no-op. This came up as a failure in the fields tests, so I've added a test to the unit module to aid future refactoring. --HG-- branch : yt | py |
diff --git a/alchemist/app.py b/alchemist/app.py
index <HASH>..<HASH> 100644
--- a/alchemist/app.py
+++ b/alchemist/app.py
@@ -118,7 +118,7 @@ def _find_application(self):
for frame in reversed(inspect.stack()[1:]):
name = frame[0].f_globals.get('__package__')
if (name and (not name.startswith('a... | Confine alchemist.tests bypass. | py |
diff --git a/libagent/device/trezor.py b/libagent/device/trezor.py
index <HASH>..<HASH> 100644
--- a/libagent/device/trezor.py
+++ b/libagent/device/trezor.py
@@ -3,6 +3,7 @@
import binascii
import logging
import os
+import sys
import semver
@@ -34,12 +35,12 @@ class Trezor(interface.Device):
retur... | pin: use PyQt only when running with no TTY | py |
diff --git a/lib/svtplay_dl/service/tv4play.py b/lib/svtplay_dl/service/tv4play.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/tv4play.py
+++ b/lib/svtplay_dl/service/tv4play.py
@@ -204,7 +204,10 @@ class Tv4play(Service, OpenGraphThumbMixin):
self.cookies = data.cookies
fail = re.search(... | tv4play: wrong user/passwd crashes the script. exception handling cant handle unicode on py2 | py |
diff --git a/benchbuild/environments/domain/declarative.py b/benchbuild/environments/domain/declarative.py
index <HASH>..<HASH> 100644
--- a/benchbuild/environments/domain/declarative.py
+++ b/benchbuild/environments/domain/declarative.py
@@ -56,7 +56,7 @@ class ContainerImage(list):
DEFAULT_BASES: tp.Dict[str, Cont... | pygit2 <I> requires libgit2-dev <I> libgit2-dev:<I> is only available in alpine:edge. So, we bump the version. | py |
diff --git a/firebirdsql/tests/test_basic.py b/firebirdsql/tests/test_basic.py
index <HASH>..<HASH> 100755
--- a/firebirdsql/tests/test_basic.py
+++ b/firebirdsql/tests/test_basic.py
@@ -224,3 +224,27 @@ class TestBasic(base.TestBase):
cur.execute("CREATE TABLE foo (a INTEGER)")
except firebirdsql... | test boolean (fail) | py |
diff --git a/isotopic_logging/proxy.py b/isotopic_logging/proxy.py
index <HASH>..<HASH> 100644
--- a/isotopic_logging/proxy.py
+++ b/isotopic_logging/proxy.py
@@ -40,7 +40,7 @@ class LoggerProxy(object):
def __init__(self, logger, injector):
self._original = logger
- self._injector = injector
+ ... | make injector public in proxy (#4) | py |
diff --git a/ipyrad/assemble/rawedit.py b/ipyrad/assemble/rawedit.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/rawedit.py
+++ b/ipyrad/assemble/rawedit.py
@@ -197,6 +197,8 @@ def cutadaptit_single(data, sample):
fullcomp(data.paramsdict["restriction_overhang"][1])[::-1] \
... | bugfix; error was raised in no barcodes during step2 filtering for gbs data. Now just a warning is printed | py |
diff --git a/examples/twitter-timeline.py b/examples/twitter-timeline.py
index <HASH>..<HASH> 100644
--- a/examples/twitter-timeline.py
+++ b/examples/twitter-timeline.py
@@ -32,8 +32,7 @@ params = {'include_rts': 1, # Include retweets
response = twitter.get('https://api.twitter.com/1/statuses/home_timeline.json',
... | removing header_auth from Twitter example to ensure it works without | py |
diff --git a/spyderlib/utils/programs.py b/spyderlib/utils/programs.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/programs.py
+++ b/spyderlib/utils/programs.py
@@ -149,9 +149,11 @@ def run_python_script_in_terminal(fname, wdir, args, interact,
"""Run Python script in an external system terminal"""
... | Fix error on Windows and Python 2 when running code on external terminal | py |
diff --git a/tests/profiles/googlefonts_test.py b/tests/profiles/googlefonts_test.py
index <HASH>..<HASH> 100644
--- a/tests/profiles/googlefonts_test.py
+++ b/tests/profiles/googlefonts_test.py
@@ -432,12 +432,12 @@ def test_condition__registered_vendor_ids():
print('"B&H ": "Bigelow & Holmes" is a valid vendor id ... | vendor ID "AE " was changed this week to "AES " so... I'll use "MS ", for Microsoft Corp. as an example of a valid 2 letter ID since it is highly unlikely to change, as "AE " did. | py |
diff --git a/django_markdown/urls.py b/django_markdown/urls.py
index <HASH>..<HASH> 100644
--- a/django_markdown/urls.py
+++ b/django_markdown/urls.py
@@ -1,9 +1,18 @@
""" Define preview URL. """
+from django import VERSION
from django.conf.urls import url
from .views import preview
-urlpatterns = [
- url('... | fix urls.py django.conf.urls.patterns will be depricated in django <I> | py |
diff --git a/osbs/core.py b/osbs/core.py
index <HASH>..<HASH> 100755
--- a/osbs/core.py
+++ b/osbs/core.py
@@ -973,7 +973,6 @@ class Openshift(object):
# Get the JSON for the ImageStream
imagestream_json = self.get_image_stream(name).json()
- logger.debug("imagestream: %r", imagestream_json)
... | Dont log imagestream and tags before importing, which is polluting build logs * CLOUDBLD-<I> | py |
diff --git a/lancet/core.py b/lancet/core.py
index <HASH>..<HASH> 100644
--- a/lancet/core.py
+++ b/lancet/core.py
@@ -282,13 +282,14 @@ class Args(BaseArgs):
constant_set = set(self.constant_keys)
unordered_varying = set(collection.keys()).difference(constant_set)
# Finding out how fast keys... | Using unsortable_keys attribute to help exclude unsortable types | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -525,7 +525,6 @@ SETUP_KWARGS = {'name': NAME,
],
'packages': ['salt',
'salt.auth',
- 'salt.caches',
... | remove salt.caches for full removal, see PR #<I> | py |
diff --git a/hug/interface.py b/hug/interface.py
index <HASH>..<HASH> 100644
--- a/hug/interface.py
+++ b/hug/interface.py
@@ -331,7 +331,7 @@ class CLI(Interface):
self.interface.cli = self
used_options = {'h', 'help'}
- nargs_set = self.interface.takes_kargs
+ nargs_set = self.interf... | Set narg to true for kwargs | py |
diff --git a/lib/pyfrc/test_support/fake_time.py b/lib/pyfrc/test_support/fake_time.py
index <HASH>..<HASH> 100644
--- a/lib/pyfrc/test_support/fake_time.py
+++ b/lib/pyfrc/test_support/fake_time.py
@@ -63,7 +63,10 @@ class FakeTime:
# Setup driver station hooks
import wpilib
- assert... | Give a better error message if the DS was initialized | py |
diff --git a/pyopenuv/__version__.py b/pyopenuv/__version__.py
index <HASH>..<HASH> 100644
--- a/pyopenuv/__version__.py
+++ b/pyopenuv/__version__.py
@@ -1,2 +1,2 @@
"""Define a version constant."""
-__version__ = '1.0.6'
+__version__ = '1.0.7' | Bumped version to <I> | py |
diff --git a/synth.py b/synth.py
index <HASH>..<HASH> 100644
--- a/synth.py
+++ b/synth.py
@@ -21,6 +21,9 @@ import subprocess
logging.basicConfig(level=logging.DEBUG)
+AUTOSYNTH_MULTIPLE_COMMITS = True
+
+
gapic = gcp.GAPICMicrogenerator()
common_templates = gcp.CommonTemplates() | build: set AUTOSYNTH_MULTIPLE_COMMITS=true for context aware commits (#<I>) | py |
diff --git a/master/buildbot/interfaces.py b/master/buildbot/interfaces.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/interfaces.py
+++ b/master/buildbot/interfaces.py
@@ -17,9 +17,10 @@
Define the interfaces that are implemented by various buildbot classes.
"""
-# E0211: Method has no argument
-# E0213: Met... | replaced depricated 'disable-msg' pylint pragma with 'disable' | py |
diff --git a/airflow/providers/amazon/aws/hooks/cloud_formation.py b/airflow/providers/amazon/aws/hooks/cloud_formation.py
index <HASH>..<HASH> 100644
--- a/airflow/providers/amazon/aws/hooks/cloud_formation.py
+++ b/airflow/providers/amazon/aws/hooks/cloud_formation.py
@@ -19,9 +19,10 @@
"""
This module contains AWS... | added type hints for aws cloud formation (#<I>) | py |
diff --git a/chalice/cli/__init__.py b/chalice/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/chalice/cli/__init__.py
+++ b/chalice/cli/__init__.py
@@ -302,8 +302,11 @@ def package(ctx, single_file, stage, out):
"generated cloudformation template. If this option "
"is provi... | Update help docs with motivation for buildspec option | py |
diff --git a/pymagicc/__init__.py b/pymagicc/__init__.py
index <HASH>..<HASH> 100644
--- a/pymagicc/__init__.py
+++ b/pymagicc/__init__.py
@@ -20,6 +20,8 @@ from .scenarios import rcp26, rcp45, rcp60, rcp85, rcps, zero_emissions # noqa
__version__ = get_versions()["version"]
del get_versions
+logger = logging.getL... | Fix up logger instantiation Using root logger is bad practice, see <URL> | py |
diff --git a/ndb/model.py b/ndb/model.py
index <HASH>..<HASH> 100644
--- a/ndb/model.py
+++ b/ndb/model.py
@@ -284,7 +284,7 @@ Key = ndb.key.Key # For export.
# NOTE: Property and Error classes are added later.
__all__ = ['Key', 'ModelAdapter', 'ModelKey', 'MetaModel', 'Model', 'Expando',
- 'BlobKey',
+ ... | Forgot to export GeoPt. | py |
diff --git a/Main.py b/Main.py
index <HASH>..<HASH> 100755
--- a/Main.py
+++ b/Main.py
@@ -75,8 +75,6 @@ class Application(object): # TODO: rename to CLIApplication
self.print_todo(number)
self.dirty = True
- self.dirty = True
-
def dep(self):
""" Handles dependencies between to... | Don't set dirty variable twice. | py |
diff --git a/gns3server/controller/gns3vm/vmware_gns3_vm.py b/gns3server/controller/gns3vm/vmware_gns3_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/controller/gns3vm/vmware_gns3_vm.py
+++ b/gns3server/controller/gns3vm/vmware_gns3_vm.py
@@ -90,8 +90,10 @@ class VMwareGNS3VM(BaseGNS3VM):
"""
List... | Fix stack when looking for GNS3 VM with player installed Fix #<I> | py |
diff --git a/docs/source/_ext/progress.py b/docs/source/_ext/progress.py
index <HASH>..<HASH> 100644
--- a/docs/source/_ext/progress.py
+++ b/docs/source/_ext/progress.py
@@ -106,9 +106,12 @@ class ProgressTable(Directive):
tr += nodes.description('',
nodes.inli... | Allow markup in progress descriptions to be interpreted | py |
diff --git a/python_modules/dagster/dagster/core/definitions/partition.py b/python_modules/dagster/dagster/core/definitions/partition.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/definitions/partition.py
+++ b/python_modules/dagster/dagster/core/definitions/partition.py
@@ -18,10 +18,6 @@ fr... | Remove unused partition functions Summary: As the title. Test Plan: bk Reviewers: sashank, prha Reviewed By: prha Differential Revision: <URL> | py |
diff --git a/anytemplate/engines/base.py b/anytemplate/engines/base.py
index <HASH>..<HASH> 100644
--- a/anytemplate/engines/base.py
+++ b/anytemplate/engines/base.py
@@ -30,6 +30,7 @@ class CompileError(Exception):
pass
+# pylint: disable=unused-argument
def fallback_renders(template_content, *args, **kwargs... | disable pylint warns (unused-argument for anytempalte.engines.base.fallback_render{s,}) as it's safely ignored | py |
diff --git a/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py b/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py
index <HASH>..<HASH> 100644
--- a/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ipv4-and-ipv6.py
+++ b/examples/v1arch/asyncore/agent/ntforg/send-trap-over-ip... | transportDispatcher.stopDispatcher() is depricated | py |
diff --git a/pyoko/db/base.py b/pyoko/db/base.py
index <HASH>..<HASH> 100644
--- a/pyoko/db/base.py
+++ b/pyoko/db/base.py
@@ -56,7 +56,8 @@ class DBObjects(object):
self.compiled_query = ''
# self._solr_query = {} # query parts, will be compiled before execution
self._solr_query = [] # que... | added a default vale (timestamp desc) for sorting | py |
diff --git a/tests/test_requests.py b/tests/test_requests.py
index <HASH>..<HASH> 100644
--- a/tests/test_requests.py
+++ b/tests/test_requests.py
@@ -200,7 +200,7 @@ def test_redirect_compiles_url():
app.bind('Request', REQUEST)
request = app.make('Request').load_app(app)
- request.redirect('test/url')
... | fixed redirection tets to be more likely scenario | py |
diff --git a/holoviews/operation/datashader.py b/holoviews/operation/datashader.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/datashader.py
+++ b/holoviews/operation/datashader.py
@@ -475,7 +475,12 @@ class regrid(ResamplingOperation):
regridded.append(rarray)
regridded = xr.Dataset({... | Fixed bounding box issues in regrid (#<I>) | py |
diff --git a/spikeextractors/extractors/yassextractors/yassextractors.py b/spikeextractors/extractors/yassextractors/yassextractors.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/extractors/yassextractors/yassextractors.py
+++ b/spikeextractors/extractors/yassextractors/yassextractors.py
@@ -41,7 +41,7 @@ class Y... | Update spikeextractors/extractors/yassextractors/yassextractors.py | py |
diff --git a/beeswarm/shared/tests/__init__.py b/beeswarm/shared/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/beeswarm/shared/tests/__init__.py
+++ b/beeswarm/shared/tests/__init__.py
@@ -1 +0,0 @@
-__author__ = 'czardoz' | removed author name added by pycharm | py |
diff --git a/src/saml2/response.py b/src/saml2/response.py
index <HASH>..<HASH> 100644
--- a/src/saml2/response.py
+++ b/src/saml2/response.py
@@ -209,10 +209,10 @@ def for_me(conditions, myself):
if not restriction.audience:
continue
for audience in restriction.audience:
- if ... | Response with unvalued AudienceRestriction (Condition) Handling | py |
diff --git a/toolkit/srm/srm.py b/toolkit/srm/srm.py
index <HASH>..<HASH> 100644
--- a/toolkit/srm/srm.py
+++ b/toolkit/srm/srm.py
@@ -323,7 +323,7 @@ class SRM(BaseEstimator):
# M-step
# Update Sigma_s and compute its trace
- sigma_s = inv_sigma_s_rhos + shared_response.dot(share... | Remove superfluous float division casting in SRM | py |
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_fast.py
+++ b/angr/analyses/cfg/cfg_fast.py
@@ -1001,7 +1001,7 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
try:
return next(self... | #<I> missed a spot | py |
diff --git a/slacker/__init__.py b/slacker/__init__.py
index <HASH>..<HASH> 100644
--- a/slacker/__init__.py
+++ b/slacker/__init__.py
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+import cgi
import json
import requests
@@ -227,7 +228,7... | HTML escaping for messages and comments. | 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
@@ -119,7 +119,7 @@ class RawGrammar:
def get_rule(self, rules=None):
if rules is None:
- return self.__rules.get(... | Rule iteration based on get_rule | py |
diff --git a/indra/statements/statements.py b/indra/statements/statements.py
index <HASH>..<HASH> 100644
--- a/indra/statements/statements.py
+++ b/indra/statements/statements.py
@@ -582,9 +582,8 @@ class Statement(object):
for attr in ['evidence', 'belief', 'uuid', 'supports', 'supported_by',
... | Fix copying of hashes in make_generic_copy method. | py |
diff --git a/openquake/hazardlib/nrml.py b/openquake/hazardlib/nrml.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/nrml.py
+++ b/openquake/hazardlib/nrml.py
@@ -305,6 +305,24 @@ validators = {
}
+def parse_src_groups(fname, converter, monitor):
+ """
+ :param fname:
+ the full pathname of a ... | Initial work to parse the source models in parallel Former-commit-id: fb2f<I>cbe<I>f<I>ddec9f0d8dc8ccb<I>c6fae<I>f | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,4 +9,5 @@ setup(name='keen-client',
author_email='team@keen.io',
url='https://github.com/keenlabs/KeenClient-Python',
packages=['keen'],
+ install_requires=['requests']
) | tell pypi that we require the requests package | py |
diff --git a/_distutils_hack/__init__.py b/_distutils_hack/__init__.py
index <HASH>..<HASH> 100644
--- a/_distutils_hack/__init__.py
+++ b/_distutils_hack/__init__.py
@@ -5,10 +5,10 @@ import os
is_pypy = '__pypy__' in sys.builtin_module_names
-
-# warnings.filterwarnings('ignore',
-# r'.+ d... | Temporarily add back filter, tests fail without it | py |
diff --git a/src/collectors/postgres/postgres.py b/src/collectors/postgres/postgres.py
index <HASH>..<HASH> 100644
--- a/src/collectors/postgres/postgres.py
+++ b/src/collectors/postgres/postgres.py
@@ -379,7 +379,8 @@ class TableScanStats(QueryStats):
path = "%(datname)s.scans.%(metric)s"
multi_db = True
... | Hack to get seq_scan / idx_scan query to work properly | py |
diff --git a/pynlpl/formats/folia.py b/pynlpl/formats/folia.py
index <HASH>..<HASH> 100644
--- a/pynlpl/formats/folia.py
+++ b/pynlpl/formats/folia.py
@@ -6111,7 +6111,9 @@ class Document(object):
self.metadatatype = MetaDataType.NATIVE
self.metadatafile = None #reference to external metadata file
-... | implemented initialisation of submetadata structures | py |
diff --git a/pycfdns/__init__.py b/pycfdns/__init__.py
index <HASH>..<HASH> 100644
--- a/pycfdns/__init__.py
+++ b/pycfdns/__init__.py
@@ -46,11 +46,14 @@ class CloudflareUpdater:
raise CloudflareZoneException("Could not get zone ID") from error
return zone_id
- async def get_zone_records(sel... | Allow getting zone records of specific type (#5) | py |
diff --git a/tools/yaml2jmxtrans.py b/tools/yaml2jmxtrans.py
index <HASH>..<HASH> 100755
--- a/tools/yaml2jmxtrans.py
+++ b/tools/yaml2jmxtrans.py
@@ -96,7 +96,11 @@ class Queries(object):
"""
root = {'servers' : [] }
for host_name in host_names:
- root['servers'].append(self.creat... | Update tools/yaml2jmxtrans.py Be able to provide different jmx ports for each host specifying host:port in yaml conf | py |
diff --git a/tests/test_gitpuller.py b/tests/test_gitpuller.py
index <HASH>..<HASH> 100644
--- a/tests/test_gitpuller.py
+++ b/tests/test_gitpuller.py
@@ -293,3 +293,21 @@ def test_explicit_unshallow(long_remote, clean_environment):
os.environ['NBGITPULLER_DEPTH'] = "2"
with Puller(long_remote, 'explicitly_fu... | tests: test pulling on top of shallow-clone | py |
diff --git a/mycluster/persist.py b/mycluster/persist.py
index <HASH>..<HASH> 100644
--- a/mycluster/persist.py
+++ b/mycluster/persist.py
@@ -66,18 +66,6 @@ class JobDB(object):
self.queue_db = dbroot['queue_db']
- from .version import get_git_version
- if 'version' not in dbroot:
- ... | Remove version from database as schema is stable at the moment | py |
diff --git a/master/buildbot/test/unit/test_steps_source_oldsource_Repo.py b/master/buildbot/test/unit/test_steps_source_oldsource_Repo.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_steps_source_oldsource_Repo.py
+++ b/master/buildbot/test/unit/test_steps_source_oldsource_Repo.py
@@ -22,7 +22,7 @@... | fix typo causing deprecation warnings during tests | py |
diff --git a/mlbgame/__init__.py b/mlbgame/__init__.py
index <HASH>..<HASH> 100644
--- a/mlbgame/__init__.py
+++ b/mlbgame/__init__.py
@@ -0,0 +1,6 @@
+import sys
+
+if sys.version_info[0] != 2:
+ print("mlbgame requires Python 2.6+ and does not work with Python 3")
+ print("You are running Python version {}.{}".format... | Ensure it is only run with python <I>+ | py |
diff --git a/LiSE/LiSE/character.py b/LiSE/LiSE/character.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/character.py
+++ b/LiSE/LiSE/character.py
@@ -82,7 +82,6 @@ class AbstractCharacter(object):
pred = getatt('preportal')
adj = succ = edge = getatt('portal')
- graph = getatt('stat')
def do(self... | Unshadow the .graph attribute I need that attribute. Gorm graphs keep all their stats there. It can't be an alias. | py |
diff --git a/examples/django_demo/generic_foreignkey/models.py b/examples/django_demo/generic_foreignkey/models.py
index <HASH>..<HASH> 100644
--- a/examples/django_demo/generic_foreignkey/models.py
+++ b/examples/django_demo/generic_foreignkey/models.py
@@ -6,7 +6,7 @@ from django.contrib.contenttypes.fields import Ge... | fix typo in generic_foreignkey | py |
diff --git a/master/buildbot/pbmanager.py b/master/buildbot/pbmanager.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/pbmanager.py
+++ b/master/buildbot/pbmanager.py
@@ -63,7 +63,7 @@ class PBManager(service.MultiService):
if not disp.users:
disp = self.dispatchers[registration.portstr]
... | fix shutdown error when disownServiceParent doesn't return a deferred | py |
diff --git a/trimesh/voxel.py b/trimesh/voxel.py
index <HASH>..<HASH> 100644
--- a/trimesh/voxel.py
+++ b/trimesh/voxel.py
@@ -67,7 +67,7 @@ def mesh_to_run(mesh, pitch):
hits = mesh.ray.intersects_location(rays)
raw_shape = np.ptp(bounds/pitch, axis=0).astype(int)
grid_origin = bounds[0]
- ... | [voxel][fix] Fix rounding error related to grid_index | py |
diff --git a/salt/states/group.py b/salt/states/group.py
index <HASH>..<HASH> 100644
--- a/salt/states/group.py
+++ b/salt/states/group.py
@@ -73,8 +73,14 @@ def _changes(name,
change = {}
if gid:
- if lgrp['gid'] != gid:
- change['gid'] = gid
+ try:
+ gid = int(gid)
+ ... | v2 try of gid converted to integer | py |
diff --git a/src/poetry/vcs/git/backend.py b/src/poetry/vcs/git/backend.py
index <HASH>..<HASH> 100644
--- a/src/poetry/vcs/git/backend.py
+++ b/src/poetry/vcs/git/backend.py
@@ -334,7 +334,7 @@ class Git:
url: bytes
path: bytes
submodules = parse_submodules(config)
- f... | fix: skip cloning badly defined submodules eg with this dependency ``` pyscf = { git = "<URL> | py |
diff --git a/mongo_orchestration/replica_sets.py b/mongo_orchestration/replica_sets.py
index <HASH>..<HASH> 100644
--- a/mongo_orchestration/replica_sets.py
+++ b/mongo_orchestration/replica_sets.py
@@ -246,7 +246,7 @@ class ReplicaSet(object):
return member config
"""
member_config = params.... | server_id may not exist in the request. | py |
diff --git a/src/quart/app.py b/src/quart/app.py
index <HASH>..<HASH> 100644
--- a/src/quart/app.py
+++ b/src/quart/app.py
@@ -226,7 +226,7 @@ class Quart(Scaffold):
before_websocket_funcs: The functions to execute before handling
a websocket.
"""
- super().__init__(import_... | Fix import order due to <I>a<I>b<I>ebea3b<I>db<I>c8ea<I>e<I> Simple re-ordering of arguments is required. | py |
diff --git a/fusesoc/utils.py b/fusesoc/utils.py
index <HASH>..<HASH> 100644
--- a/fusesoc/utils.py
+++ b/fusesoc/utils.py
@@ -72,7 +72,7 @@ def get_verilator_root():
if verilator is None:
return None
output = subprocess.check_output(verilator + ' -V',
- shell=True... | utils: make get_verilator_root work with python3 str and byte string handling in python<I> and python3.x differ a lot, doing str type of operations on a byte string in python3 doesn't fly. To fix this, decode the byte string into a str before doing operations on it. | py |
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/extract.py
+++ b/openquake/calculators/extract.py
@@ -586,7 +586,7 @@ def extract_gridded_sources(dstore, what):
task_no = int(qdict.get('task_no', ['0'])[0])
dic = {}
... | Rounding the coordinates in extract_gridded_sources [skip hazardlib] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -80,7 +80,7 @@ setuptools.setup(
# Location where the package may be downloaded:
download_url='https://pypi.org/project/harvesters/',
# A list of required Python modules:
- install_requires=['harvesters_util=... | Pin the version of harvester_gui | py |
diff --git a/estnltk/taggers/text_segmentation/patterns.py b/estnltk/taggers/text_segmentation/patterns.py
index <HASH>..<HASH> 100644
--- a/estnltk/taggers/text_segmentation/patterns.py
+++ b/estnltk/taggers/text_segmentation/patterns.py
@@ -201,13 +201,13 @@ email_and_www_patterns = [
'_group_': 2,
'_pr... | CompoundTokenTagger's rules fix: more country code top-level domains | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.