diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,10 +50,14 @@ if sys.argv[1] in ('install', 'develop'):
for path in sys.path:
if (path.endswith('site-packages')) or (path.endswith('dist-packages') and 'local' in path):
path = os.path.join(path,... | handle failing to write to a path | py |
diff --git a/src/means/tests/test_simulate.py b/src/means/tests/test_simulate.py
index <HASH>..<HASH> 100644
--- a/src/means/tests/test_simulate.py
+++ b/src/means/tests/test_simulate.py
@@ -12,7 +12,7 @@ class ConstantDerivativesProblem(ODEProblem):
right_hand_... | whoops, tests should inherit from unittest.TestCase | py |
diff --git a/s4/clients/s3.py b/s4/clients/s3.py
index <HASH>..<HASH> 100644
--- a/s4/clients/s3.py
+++ b/s4/clients/s3.py
@@ -147,6 +147,7 @@ class S3SyncClient(SyncClient):
elif content_type == 'application/gzip':
logger.debug('Detected gzip encoding for index')
body = g... | Return decompressed and decoded index | py |
diff --git a/zopkio/test_runner.py b/zopkio/test_runner.py
index <HASH>..<HASH> 100644
--- a/zopkio/test_runner.py
+++ b/zopkio/test_runner.py
@@ -117,11 +117,7 @@ class TestRunner(object):
setattr( self.dynamic_config_module, "log_patterns", wrap( lambda unique_id: constants.FILTER_NAME_ALLOW_ALL ))
else:
... | Added flag/option in config and in API to turn of fetching of logs at end of run | py |
diff --git a/zappa/cli.py b/zappa/cli.py
index <HASH>..<HASH> 100644
--- a/zappa/cli.py
+++ b/zappa/cli.py
@@ -28,7 +28,9 @@ import slugify
import string
import sys
import tempfile
+import time
import zipfile
+from dateutil import parser
from datetime import datetime,timedelta
from zappa import Zappa, logger
fro... | add version check into cli, prep for version bump | py |
diff --git a/trashcli/list.py b/trashcli/list.py
index <HASH>..<HASH> 100644
--- a/trashcli/list.py
+++ b/trashcli/list.py
@@ -4,7 +4,7 @@ import os
from . import fstab
from .fs import FileSystemReader, file_size
-from .fstab import volume_of, VolumesListing
+from .fstab import VolumesListing
from .trash import (v... | Fix lint in trash-cli Fix the import redefinition issue in list.py detected by pyflakes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ except ImportError:
# Python version and OS.
REQUIRED_PACKAGES = [
'httplib2>=0.8',
- 'oauth2client>=1.5.2',
+ 'oauth2client>=1.5.2,<4.0.0dev',
'setuptools>=18.5',
'six>=1.9.0',
] | Pin oauth2client to avoid using version <I> The <I> version of oauth2client removes locked_file. | py |
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/oqvalidation.py
+++ b/openquake/commonlib/oqvalidation.py
@@ -231,8 +231,6 @@ class OqParam(valid.ParamSet):
'region_constraint is obsolete, use region instead')
... | Removed warning [skip CI] | py |
diff --git a/yandextank/plugins/Telegraf/collector.py b/yandextank/plugins/Telegraf/collector.py
index <HASH>..<HASH> 100644
--- a/yandextank/plugins/Telegraf/collector.py
+++ b/yandextank/plugins/Telegraf/collector.py
@@ -74,7 +74,7 @@ class MonitoringCollector(object):
"timestamp": ts,
... | parse host comment from config; | py |
diff --git a/mimeparse.py b/mimeparse.py
index <HASH>..<HASH> 100644
--- a/mimeparse.py
+++ b/mimeparse.py
@@ -26,7 +26,7 @@ __license__ = 'MIT License'
__credits__ = ''
-class MimeTypeParseException(Exception):
+class MimeTypeParseException(ValueError):
pass | MimeTypeParseException should inherit from ValueError | py |
diff --git a/satpy/tests/reader_tests/test_generic_image.py b/satpy/tests/reader_tests/test_generic_image.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/reader_tests/test_generic_image.py
+++ b/satpy/tests/reader_tests/test_generic_image.py
@@ -154,17 +154,6 @@ class TestGenericImage(unittest.TestCase):
self... | Remove test_get_geotiff_area_def from test_generic_image | py |
diff --git a/svo_filters/setup_package.py b/svo_filters/setup_package.py
index <HASH>..<HASH> 100644
--- a/svo_filters/setup_package.py
+++ b/svo_filters/setup_package.py
@@ -1,4 +1,4 @@
from distutils.extension import Extension
def get_package_data():
- return {'svo_filters': ['data/filters/*', 'data/spectra/*'... | Added data/ directory to extensions. | py |
diff --git a/salt/fileserver/roots.py b/salt/fileserver/roots.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/roots.py
+++ b/salt/fileserver/roots.py
@@ -75,11 +75,20 @@ def serve_file(load, fnd):
ret['data'] = data
return ret
+
def update():
'''
When we are asked to update (regular inte... | Fix OSError when roots file hash hasn't been built When the fileserver updates, if no files have been served up then there will be no hash file. Silently handle the exception to keep it out of the log. | py |
diff --git a/genomepy/functions.py b/genomepy/functions.py
index <HASH>..<HASH> 100644
--- a/genomepy/functions.py
+++ b/genomepy/functions.py
@@ -122,7 +122,7 @@ def generate_exports():
g = Genome(name)
env_name = re.sub(r"[^\w]+", "_", name).upper()
env.append(f"export {env_name... | edge case: renamed genome dirs (#<I>) no longer causes an error if the genome file in these dirs doesn't have the exact same name | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -105,6 +105,7 @@ setup(
'cachelib',
'appdirs',
'keep',
+ 'rich'
],
cmdclass={
'lint': Lint | added rich library to setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,6 @@
from setuptools import setup, find_packages
tests_require = [
- 'mock',
'nose',
'coverage',
'yanc', | Remove unused mock dependency No usage of that library found anywhere in the code | py |
diff --git a/topydo/lib/HashListValues.py b/topydo/lib/HashListValues.py
index <HASH>..<HASH> 100644
--- a/topydo/lib/HashListValues.py
+++ b/topydo/lib/HashListValues.py
@@ -68,7 +68,7 @@ def hash_list_values(p_list, p_key=lambda i: i):
# hash
hasher = sha1()
- hasher.update(raw_value)
+ ... | Unicode-objects must be encoded before hashing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
-readme = open('README.rst').read()
+readme = open('README.rst', encoding='utf8', errors='ignore').read()
history =... | Fix for Python 3 and Django 2.x, commit more changed files. | py |
diff --git a/stanza/utils/datasets/prepare_tokenizer_treebank.py b/stanza/utils/datasets/prepare_tokenizer_treebank.py
index <HASH>..<HASH> 100755
--- a/stanza/utils/datasets/prepare_tokenizer_treebank.py
+++ b/stanza/utils/datasets/prepare_tokenizer_treebank.py
@@ -730,7 +730,7 @@ def build_combined_english_dataset(ud... | Oops, did not actually iterate the test_treebanks | py |
diff --git a/indra/tools/reading/submit_reading_pipeline.py b/indra/tools/reading/submit_reading_pipeline.py
index <HASH>..<HASH> 100644
--- a/indra/tools/reading/submit_reading_pipeline.py
+++ b/indra/tools/reading/submit_reading_pipeline.py
@@ -40,7 +40,7 @@ class BatchMonitor(object):
If you choose to dump ... | Fix ordering of BatchMonitor kwargs. | py |
diff --git a/simuvex/s_unicorn.py b/simuvex/s_unicorn.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_unicorn.py
+++ b/simuvex/s_unicorn.py
@@ -36,22 +36,17 @@ class SimUnicorn(SimRun):
self.state.unicorn.destroy()
self.stop_reason = self.state.unicorn.stop_reason
- self.success = self.sta... | change the way unicorn reasons about successful runs | 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
@@ -16,10 +16,10 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# do... | add check<I> path to sys.path in docs/source/conf.py | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -412,12 +412,12 @@ def get_id():
for a in ip_addresses:
if not a.is_private:
log.info('Using public ip address for id: {0}'.format(a))
- return a, True
+ ... | Fix for #<I>, needs to confirm | py |
diff --git a/tests/feature_extraction/test_feature_calculations.py b/tests/feature_extraction/test_feature_calculations.py
index <HASH>..<HASH> 100644
--- a/tests/feature_extraction/test_feature_calculations.py
+++ b/tests/feature_extraction/test_feature_calculations.py
@@ -383,8 +383,8 @@ class FeatureCalculationTestC... | include unit test for num_cwt_peaks (#<I>) | py |
diff --git a/salt/client.py b/salt/client.py
index <HASH>..<HASH> 100644
--- a/salt/client.py
+++ b/salt/client.py
@@ -120,7 +120,11 @@ class LocalClient(object):
retp = os.path.join(jid_dir, fn_, 'return.p')
if not os.path.isfile(retp):
continue
- ... | repair the issue where pickle are being read before they are written | py |
diff --git a/sorl/thumbnail/engines/wand_engine.py b/sorl/thumbnail/engines/wand_engine.py
index <HASH>..<HASH> 100644
--- a/sorl/thumbnail/engines/wand_engine.py
+++ b/sorl/thumbnail/engines/wand_engine.py
@@ -3,6 +3,7 @@ Wand (>=v0.3.0) engine for Sorl-thumbnail
'''
from wand.image import Image
+from wand.excepti... | is_valid_image does something useful now in wand-engine | py |
diff --git a/pyang/plugins/sid.py b/pyang/plugins/sid.py
index <HASH>..<HASH> 100644
--- a/pyang/plugins/sid.py
+++ b/pyang/plugins/sid.py
@@ -15,6 +15,7 @@ import os
import errno
from pyang import plugin
from pyang import util
+from pyang import error
from collections import OrderedDict
def pyang_plugin_init():... | Error handling updated To allow SID file generation and update in the presence of warnings. | py |
diff --git a/silverberg/marshal.py b/silverberg/marshal.py
index <HASH>..<HASH> 100644
--- a/silverberg/marshal.py
+++ b/silverberg/marshal.py
@@ -21,7 +21,7 @@ import re
import struct
from uuid import UUID
from datetime import datetime
-import time
+import calendar
import cql
@@ -58,9 +58,7 @@ def marshal(term... | having millisecond precision while marshalling and unmarshalling the datetime. Works with local datetime (i.e. converts them to utc while storing and parses them accordingly). Need to test with timezone-aware datetimes Also, write tests! | py |
diff --git a/gocd/api/artifact.py b/gocd/api/artifact.py
index <HASH>..<HASH> 100644
--- a/gocd/api/artifact.py
+++ b/gocd/api/artifact.py
@@ -55,7 +55,7 @@ class Artifact(Endpoint):
Args:
path_to_file (str): The path to file to get. It can be nested eg
- ```dist/foobar-widgets-1.2.0.ja... | Correct restructured text backtick usage | py |
diff --git a/gns3server/utils/asyncio/telnet_server.py b/gns3server/utils/asyncio/telnet_server.py
index <HASH>..<HASH> 100644
--- a/gns3server/utils/asyncio/telnet_server.py
+++ b/gns3server/utils/asyncio/telnet_server.py
@@ -127,6 +127,11 @@ class AsyncioTelnetServer:
data = coro.result()
... | Fix closing a docker console jump to <I>% of CPU usage Fix #<I> | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -13,5 +13,5 @@ used from a setup script as
# Updated automatically by the Python release process.
#
#--start constants--
-__version__ = "3.3.2"
+__version__ = "3.3.3rc1"
#--end constants-- | Bump to <I>rc1. | py |
diff --git a/paramiko/client.py b/paramiko/client.py
index <HASH>..<HASH> 100644
--- a/paramiko/client.py
+++ b/paramiko/client.py
@@ -273,7 +273,10 @@ class SSHClient (object):
establishing an SSH session
@raise socket.error: if a socket error occurred while connecting
"""
- sock ... | patch from maxime ripard adding ip6 support. | py |
diff --git a/tests/smolder_tests.py b/tests/smolder_tests.py
index <HASH>..<HASH> 100644
--- a/tests/smolder_tests.py
+++ b/tests/smolder_tests.py
@@ -10,6 +10,7 @@ THIS_DIR = os.path.dirname(os.path.realpath(__file__))
def test_noop_test():
assert smolder.noop_test()
+
def test_github_status():
myfile = open... | Whitespace cleanup in smolder tests. | py |
diff --git a/evergreen/core/loop.py b/evergreen/core/loop.py
index <HASH>..<HASH> 100644
--- a/evergreen/core/loop.py
+++ b/evergreen/core/loop.py
@@ -248,7 +248,7 @@ class EventLoop(object):
def switch(self):
if not self._started:
- self._run(forever=False)
+ self.run()
... | Fixed staring loop if switch() was called and it wasn't started yet | py |
diff --git a/tests/settings.py b/tests/settings.py
index <HASH>..<HASH> 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -22,3 +22,10 @@ CACHES = {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
+
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTem... | Fix for template engines on Django master | py |
diff --git a/tests/integration/test_local.py b/tests/integration/test_local.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_local.py
+++ b/tests/integration/test_local.py
@@ -12,10 +12,11 @@ from chalice.config import Config
class ThreadedLocalServer(Thread):
- def __init__(self, port):
+ def __i... | Fixes failing integration test Disabling pytest's output capture explained why it was seemingly hanging endlessly. See awslabs/chalice@a<I>e4de | py |
diff --git a/dirsync/options.py b/dirsync/options.py
index <HASH>..<HASH> 100644
--- a/dirsync/options.py
+++ b/dirsync/options.py
@@ -142,7 +142,7 @@ class ArgParser(ArgumentParser):
self.load_cfg(args[0] if args else sys.argv[1])
parsed = super(ArgParser, self).parse_args(args, namespace)
-... | refactor(options): replace equality by identity check | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -288,7 +288,8 @@ class TestChannels(unittest.TestCase):
channels_create = self.rocket.channels_create(name).json()
self.assertTrue(channels_create.get('success'))
self.assertE... | Fix test for channels_delete | py |
diff --git a/zengine/views/crud.py b/zengine/views/crud.py
index <HASH>..<HASH> 100644
--- a/zengine/views/crud.py
+++ b/zengine/views/crud.py
@@ -660,7 +660,7 @@ class CrudView(BaseView):
f['values'] = [
{'name': k,
'value': v,
- 'selected... | ADD, selected sent as True non-selected as False to UI rref #<I> | py |
diff --git a/treeherder/client/thclient/client.py b/treeherder/client/thclient/client.py
index <HASH>..<HASH> 100644
--- a/treeherder/client/thclient/client.py
+++ b/treeherder/client/thclient/client.py
@@ -602,7 +602,9 @@ class TreeherderClient(object):
PROTOCOLS = {'http', 'https'} # supported protocols
... | Bug <I> - Python client: Use a constant for request headers In the next commit we'll be adding a custom user agent header, which will increase duplication. Therefore let's define the headers only once to avoid this. The Content-Type header is redundant for post() since one is set automatically when using the `json` pa... | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -22,7 +22,7 @@ sys.path.append(os.path.abspath('../boolean/'))
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom one... | Switch from pngmath to mathjax do display formulas in docs. | py |
diff --git a/spinoff/contrib/filetransfer/response.py b/spinoff/contrib/filetransfer/response.py
index <HASH>..<HASH> 100644
--- a/spinoff/contrib/filetransfer/response.py
+++ b/spinoff/contrib/filetransfer/response.py
@@ -15,7 +15,7 @@ class Response(Actor):
seek_ptr = 0
chunks_sent = 0
othe... | Fixed a bug with (binary) files being opened in ascii mode for some reason--I was sure I had fixed this once before | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -88,6 +88,7 @@ entry_points = {
"jenkins=fedmsg_meta_fedora_infrastructure.jenkins:JenkinsProcessor",
"github=fedmsg_meta_fedora_infrastructure.github:GithubProcessor",
"bugzilla=fedmsg_meta_fedora_i... | Adjust the setup.py file to include the elections processor | py |
diff --git a/ontobio/io/gpaddiffer.py b/ontobio/io/gpaddiffer.py
index <HASH>..<HASH> 100644
--- a/ontobio/io/gpaddiffer.py
+++ b/ontobio/io/gpaddiffer.py
@@ -73,9 +73,13 @@ def generate_group_report(df_file1, df_file2, group_by_column, file1, file2, out
merged_group_frame = pd.concat([grouped_frame1, grou... | only show grouped by rows where they don't match eachother | py |
diff --git a/pendulum/lang/pt_br.py b/pendulum/lang/pt_br.py
index <HASH>..<HASH> 100644
--- a/pendulum/lang/pt_br.py
+++ b/pendulum/lang/pt_br.py
@@ -8,7 +8,7 @@ translations = {
2: 'Terça-feira',
3: 'Quarta-feira',
4: 'Quinta-feira',
- 5: 'Qexta-feira',
+ 5: 'Sexta-feira',
... | Update pt_br.py (#<I>) Changed name for 5th day from Quexta-feira to Sexta-feira. | py |
diff --git a/spyder/widgets/findinfiles.py b/spyder/widgets/findinfiles.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/findinfiles.py
+++ b/spyder/widgets/findinfiles.py
@@ -579,8 +579,7 @@ class FindOptions(QWidget):
return self.path_selection_combo.path
def set_directory(self, directory):
- ... | Removed not needed to_text_string in one method. The directory is already unicode. So there is no need to use to_text_string here. | py |
diff --git a/superset/utils/cache_manager.py b/superset/utils/cache_manager.py
index <HASH>..<HASH> 100644
--- a/superset/utils/cache_manager.py
+++ b/superset/utils/cache_manager.py
@@ -41,7 +41,7 @@ class CacheManager:
cache_config = app.config[cache_config_key]
cache_type = cache_config.get("CACHE_... | fix(cache): only warn about fallback cache for non-debug mode (#<I>) | py |
diff --git a/labsuite/engine/protocol.py b/labsuite/engine/protocol.py
index <HASH>..<HASH> 100644
--- a/labsuite/engine/protocol.py
+++ b/labsuite/engine/protocol.py
@@ -205,7 +205,6 @@ class Protocol():
cur = self._commands[i]
command = list(cur)[0]
args = cur[command]
- debug("Proto... | Protocol: Better logging (by handler). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ description = "Command line script that automatically searches for video subtitl
setup(
name = "ss",
- version = "1.0",
+ version = "1.0.1",
packages = [],
scripts = ['ss.py'],
... | bumping version to <I> | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -28,6 +28,9 @@ sys.path.insert(0, os.path.abspath('..'))
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
+# Check if we are building on readthedocs
+RTD_BUILD = os.e... | don't try use spellcheck extension on RTD | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -267,3 +267,5 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
+
+os.environ['DJANGO_SETTINGS_MODUL... | fix build errors on read the docs | py |
diff --git a/chatterbot/adapters/logic/time_adapter.py b/chatterbot/adapters/logic/time_adapter.py
index <HASH>..<HASH> 100644
--- a/chatterbot/adapters/logic/time_adapter.py
+++ b/chatterbot/adapters/logic/time_adapter.py
@@ -17,7 +17,6 @@ class TimeLogicAdapter(LogicAdapter):
("do you know the time", 1),... | Improve the Bayes classifier in time_adapter.py (#<I>) It looks like `"do you know the time"` was accidentally added to both the "hit" and "miss" lists. This commit ensures it's classified as a match. | py |
diff --git a/tests/nipaptest.py b/tests/nipaptest.py
index <HASH>..<HASH> 100755
--- a/tests/nipaptest.py
+++ b/tests/nipaptest.py
@@ -6,6 +6,7 @@ import sys
sys.path.insert(0, '..')
sys.path.insert(0, '../pynipap')
sys.path.insert(0, '../nipap')
+sys.path.insert(0, '../nipap-cli')
import nipap.nipap
from nipap.... | Add test for CLI input validation Add a simple test for checking that errors are raised on extraneuous arguments to the CLI unless there is a rest command defined. Part of #<I>. | py |
diff --git a/test_casscache.py b/test_casscache.py
index <HASH>..<HASH> 100644
--- a/test_casscache.py
+++ b/test_casscache.py
@@ -7,6 +7,9 @@ import sys
from casscache import Client
from cassandra.cluster import Cluster
+if sys.version_info[0] == 3:
+ long = int
+
TEST_KEYSPACE = 'casscache_test'
TEST_COLUMNF... | lrn2python | py |
diff --git a/examples/clickable_waffle.py b/examples/clickable_waffle.py
index <HASH>..<HASH> 100644
--- a/examples/clickable_waffle.py
+++ b/examples/clickable_waffle.py
@@ -13,5 +13,4 @@ app = App("Waffle!", height=50*20, width=50*20)
# Create a waffle 80x80 with circular pixels 10x10 and 2px padding between them
b... | Removing extra CR/LF | py |
diff --git a/blockstack/lib/config.py b/blockstack/lib/config.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/config.py
+++ b/blockstack/lib/config.py
@@ -26,9 +26,15 @@ import sys
import copy
from ConfigParser import SafeConfigParser
import pybitcoin
-import blockstack_utxo
-from blockstack_utxo import *
-from ... | remove dead imports; if unit-testing, then set a version directly (won't be used unless the right envars are set) | py |
diff --git a/wagtailmenus/tests/test_models.py b/wagtailmenus/tests/test_models.py
index <HASH>..<HASH> 100644
--- a/wagtailmenus/tests/test_models.py
+++ b/wagtailmenus/tests/test_models.py
@@ -168,7 +168,8 @@ class TestLinkPage(TestCase):
linkpage_to_url = LinkPage(
title='Do a google search',
... | Use the `extra_classes` field in a test to show it working | 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
@@ -95,6 +95,8 @@ def install_ubuntu(codename, version_kind, version):
'--assume-yes',
'--',
'ceph',
+ 'ceph-common',
+ ... | install: ceph-common and ceph-fs-common, too | py |
diff --git a/command/bdist_dumb.py b/command/bdist_dumb.py
index <HASH>..<HASH> 100644
--- a/command/bdist_dumb.py
+++ b/command/bdist_dumb.py
@@ -82,8 +82,6 @@ class bdist_dumb (Command):
# pseudo-installation tree.
archive_basename = "%s.%s" % (self.distribution.get_fullname(),
... | Delete some debugging prints. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ import quantulum
setup(
name='quantulum',
packages=['quantulum'],
- data_files=[('quantulum/resources', ['quantulum/resources/clf.pickle', 'quantulum/resources/units.json', 'quantulum/resources/ent... | Fix: package_data in setup.py. | py |
diff --git a/ahds/tests/test_ahds.py b/ahds/tests/test_ahds.py
index <HASH>..<HASH> 100644
--- a/ahds/tests/test_ahds.py
+++ b/ahds/tests/test_ahds.py
@@ -198,11 +198,11 @@ class TestMain(Py23FixTestCase):
m_m = m.match(string)
self.assertIsNotNone(m_m)
- def test_data(self):
- """Test tha... | Edit for failed build due to local file requirement | py |
diff --git a/txkoji/task.py b/txkoji/task.py
index <HASH>..<HASH> 100644
--- a/txkoji/task.py
+++ b/txkoji/task.py
@@ -22,7 +22,7 @@ class Task(Munch):
:returns: an arch string (eg "noarch", or "ppc64le"), or None this task
has no architecture associated with it.
"""
- if sel... | task: populate .package, .arch, .target for livecd tasks | py |
diff --git a/doctr/local.py b/doctr/local.py
index <HASH>..<HASH> 100644
--- a/doctr/local.py
+++ b/doctr/local.py
@@ -75,12 +75,14 @@ def encrypt_variable(variable, build_repo, *, public_key=None, is_private=False,
res = requests.get('https://api.travis-ci.org/repos/{build_repo}/key'.format(build_repo=bui... | Delete the GitHub personal access token in a finally block | py |
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/plot.py
+++ b/holoviews/plotting/plot.py
@@ -613,7 +613,7 @@ class GenericElementPlot(DimensionedPlot):
self.current_key = key
return self.current_frame
elif self.... | Allowed using cache when drawing initial frame | py |
diff --git a/haphilipsjs/__init__.py b/haphilipsjs/__init__.py
index <HASH>..<HASH> 100644
--- a/haphilipsjs/__init__.py
+++ b/haphilipsjs/__init__.py
@@ -888,6 +888,7 @@ class PhilipsTV(object):
if power == "On":
await self.setAmbilightMode("internal")
else:
+ ... | Explicity got to manual when turning off | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(
author_email='erikrose@grinchcentral.com',
license='GPL',
packages=find_packages(exclude=['ez_setup']),
- install_requires=['Nose>=0.11.0', 'blessings>=1.1,<2.0'],
+ install_requires=... | Bump required Blessings version to <I>, because we need `number_of_colors`. | py |
diff --git a/osmnx/footprints.py b/osmnx/footprints.py
index <HASH>..<HASH> 100644
--- a/osmnx/footprints.py
+++ b/osmnx/footprints.py
@@ -496,7 +496,8 @@ def footprints_from_address(address, distance, footprint_type='building', retain
retain_invalid=retain_invalid, custom_settings=cus... | footprints_from_polygon now passes custom_settings. | py |
diff --git a/cdpybio/analysis.py b/cdpybio/analysis.py
index <HASH>..<HASH> 100644
--- a/cdpybio/analysis.py
+++ b/cdpybio/analysis.py
@@ -314,8 +314,8 @@ def ld_expand(df, ld_beds):
n = r.next()
p1, p2, r2 = n[-1].split(':')
if float(r2) >= 0.8... | Updated LD expansion method I now name the results so that each SNP's name is the variant that it was expanded from. | py |
diff --git a/andes/routines/tds.py b/andes/routines/tds.py
index <HASH>..<HASH> 100644
--- a/andes/routines/tds.py
+++ b/andes/routines/tds.py
@@ -480,7 +480,7 @@ class TDS(BaseRoutine):
self.inc = inc
mis = np.max(np.abs(inc))
- logger.debug(" * niter=%d, mis=%g", self.niter, mi... | Reverted debug messages due to slow down. | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -334,12 +334,9 @@ def active_config(stub_config):
@pytest.fixture
def tempdir():
- cwd = os.getcwd()
tmp = tempfile.mkdtemp()
- os.chdir(tmp)
yield tmp
- os.chdir(cw... | Remove duplicated cwd management in fixtures | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -168,6 +168,22 @@ def test(load_gi, backend=None, strict=False, filter_=None, failfast=False):
return (("### %s " % text) + "#" * 80)[:80]
import gi
+
+ TYPELIBS = {
+ ... | tests: Call gi.require_version for all typelibs used in the test suite | py |
diff --git a/dipper/sources/MMRRC.py b/dipper/sources/MMRRC.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/MMRRC.py
+++ b/dipper/sources/MMRRC.py
@@ -142,7 +142,8 @@ class MMRRC(Source):
mgi_gene_name, sds_url, accepted_date, mp_ids, pubmed_nums,
research_areas) = row
- ... | avoid processing variants for withdrawn genes | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -513,18 +513,16 @@ class ReqServer(object):
self.__bind()
def destroy(self):
- if self.clients.closed is False:
+ if hasattr(self, 'clients') and self.clients.closed is Fal... | Clean up shutdown process, since these are only in one of the child processes | py |
diff --git a/postmark/core.py b/postmark/core.py
index <HASH>..<HASH> 100644
--- a/postmark/core.py
+++ b/postmark/core.py
@@ -8,7 +8,7 @@ __contributors__ = "Dave Martorana (themartorana), Bill Jones (oraclebill), R
#
# Imports (JSON library based on import try)
-import email
+import email.mime.base
import sys... | Changed an import to fix scope issues when referencing email.mime.base.MIMEBase and changed the docstring to more accurately describe the nature of the attachments parameter. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,10 +6,12 @@ setup(
name = 'ccsgp_get_started',
version = '2.0',
description = 'get started with ccsgp',
- licence = 'MIT',
+ license = 'MIT',
author = 'Patrick Huck',
author_email = 'patrick@the-huck.com',
... | setup.py: add download_url and keywords | py |
diff --git a/FlowCal/io.py b/FlowCal/io.py
index <HASH>..<HASH> 100644
--- a/FlowCal/io.py
+++ b/FlowCal/io.py
@@ -1346,9 +1346,8 @@ class FCSData(np.ndarray):
amplification_type = tuple(amplification_type)
# range and resolution: These are extracted from the required $PnR
- # keyword paramet... | Corrected comment in FCSData constructor, where `.range` is generated. | py |
diff --git a/rinohlib/stylesheets/ieee.py b/rinohlib/stylesheets/ieee.py
index <HASH>..<HASH> 100644
--- a/rinohlib/stylesheets/ieee.py
+++ b/rinohlib/stylesheets/ieee.py
@@ -52,7 +52,8 @@ styles('literal', ClassSelector(Paragraph, 'literal'),
indent_first=0,
margin_left=0.5*CM,
typeface=ieee_fa... | Don't hyphenate literal text | py |
diff --git a/PyInquirer/__init__.py b/PyInquirer/__init__.py
index <HASH>..<HASH> 100644
--- a/PyInquirer/__init__.py
+++ b/PyInquirer/__init__.py
@@ -3,9 +3,9 @@
from __future__ import absolute_import, print_function
import os
-# from prompt_toolkit.token import Token
-# from prompt_toolkit.styles import style_fro... | Uncommented imports necessary for style_to_dict to work. | py |
diff --git a/asciimatics/screen.py b/asciimatics/screen.py
index <HASH>..<HASH> 100644
--- a/asciimatics/screen.py
+++ b/asciimatics/screen.py
@@ -1,6 +1,7 @@
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
+From __future__ import unicode_literals
from bu... | Experiment to fix Travis <I> build | py |
diff --git a/examples/tests.py b/examples/tests.py
index <HASH>..<HASH> 100644
--- a/examples/tests.py
+++ b/examples/tests.py
@@ -260,6 +260,13 @@ class GroupTestCase(BaseTestCase):
self.assertRaises(LdapGroup.DoesNotExist, LdapGroup.objects.get,
name='does_not_exist')
+ def te... | Ensure that 'exists()' is supported. Add tests for that useful queryset function. Closes #<I>. | py |
diff --git a/vyper/__init__.py b/vyper/__init__.py
index <HASH>..<HASH> 100644
--- a/vyper/__init__.py
+++ b/vyper/__init__.py
@@ -1,9 +1,13 @@
import sys
+import pkg_resources
+
-from pkg_resources import get_distribution
if (sys.version_info.major, sys.version_info.minor) < (3, 6):
# Can't be tested, as our ... | Allow running vyper straight from folder, for development purposes. | py |
diff --git a/worker/buildbot_worker/test/test_util_hangcheck.py b/worker/buildbot_worker/test/test_util_hangcheck.py
index <HASH>..<HASH> 100644
--- a/worker/buildbot_worker/test/test_util_hangcheck.py
+++ b/worker/buildbot_worker/test/test_util_hangcheck.py
@@ -186,6 +186,9 @@ def reportUnhandledErrors(case, d):
... | Add some more docstrings. | py |
diff --git a/pycanvas/account.py b/pycanvas/account.py
index <HASH>..<HASH> 100644
--- a/pycanvas/account.py
+++ b/pycanvas/account.py
@@ -286,6 +286,23 @@ class Account(CanvasObject):
else:
return False
+ def list_roles(self, account_id):
+ """
+ List the roles available to an ... | wrote mehtod for list roles | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ long_description = from_file('README.rst', 'See https://bidict.readthedocs.org')
tests_require = [
- 'coverage==4.4',
+ 'coverage==4.4.1',
'flake8==3.2.1',
'hypothesis==3.9.0',
'hypothe... | update to latest coverage, sphinx, and pre-commit | py |
diff --git a/lambdas/es/indexer/index.py b/lambdas/es/indexer/index.py
index <HASH>..<HASH> 100644
--- a/lambdas/es/indexer/index.py
+++ b/lambdas/es/indexer/index.py
@@ -103,11 +103,11 @@ class DocumentQueue:
# Quilt keys
# Be VERY CAREFUL changing these values, as a type change can cause a
... | Fulltext contents go in (#<I>) | py |
diff --git a/plexapi/library.py b/plexapi/library.py
index <HASH>..<HASH> 100644
--- a/plexapi/library.py
+++ b/plexapi/library.py
@@ -474,14 +474,7 @@ class LibrarySection(PlexObject):
data = self._server.query(key)
for meta in data.iter('Meta'):
for metaType in meta.iter('Type'):
- ... | change if to check both conditions at the same time. thanks @hellowlol | 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.dev10'
- vinfo.release = 'False'
+ vinfo... | prepare for release (#<I>) | py |
diff --git a/spyder_kernels/customize/spyderpdb.py b/spyder_kernels/customize/spyderpdb.py
index <HASH>..<HASH> 100755
--- a/spyder_kernels/customize/spyderpdb.py
+++ b/spyder_kernels/customize/spyderpdb.py
@@ -205,13 +205,16 @@ class SpyderPdb(ipyPdb, object): # Inherits `object` to call super() in PY2
... | remove locals from exec with comprehensions | py |
diff --git a/airflow/www/views.py b/airflow/www/views.py
index <HASH>..<HASH> 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1476,7 +1476,7 @@ class Airflow(BaseView):
'inverted': True,
'height': height,
},
- 'xAxis': {'categories': tasks},
+ ... | color alternate rows so it's easier to use | py |
diff --git a/tools/run_tests/run_interop_tests.py b/tools/run_tests/run_interop_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_interop_tests.py
+++ b/tools/run_tests/run_interop_tests.py
@@ -331,7 +331,7 @@ class GoLanguage:
return ['go', 'run', 'server.go'] + args
def global_env(self):
... | try setting GO<I>MODULE in interop test runner | py |
diff --git a/clam/common/viewers.py b/clam/common/viewers.py
index <HASH>..<HASH> 100644
--- a/clam/common/viewers.py
+++ b/clam/common/viewers.py
@@ -149,12 +149,12 @@ class FoLiAViewer(AbstractViewer):
transform = etree.XSLT(xslt_doc)
lines = file.readlines()
- if lines:
+ if lines:... | attempted fix for stupid unicode error in FoLiAViewer | py |
diff --git a/climlab/model/column.py b/climlab/model/column.py
index <HASH>..<HASH> 100644
--- a/climlab/model/column.py
+++ b/climlab/model/column.py
@@ -4,6 +4,26 @@ Object-oriented code for radiative-convective models with grey-gas radiation.
Code developed by Brian Rose, University at Albany
brose@albany.edu
+
... | Added example code for creating a seasonal column model in docstring of column.py | py |
diff --git a/sphinxcontrib/soliditydomain/documenters.py b/sphinxcontrib/soliditydomain/documenters.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/soliditydomain/documenters.py
+++ b/sphinxcontrib/soliditydomain/documenters.py
@@ -109,7 +109,7 @@ class SolidityObjectDocumenter(Documenter):
# normalize comp... | Fixed regression in which empty functions are renamed to the contract name | py |
diff --git a/elpy/server.py b/elpy/server.py
index <HASH>..<HASH> 100644
--- a/elpy/server.py
+++ b/elpy/server.py
@@ -215,6 +215,7 @@ class ElpyRPCServer(JSONRPCServer):
"""
self._ensure_import_magic()
+ source = get_source(source)
return self.import_magic.add_import(source, stateme... | Fix importmagic for the case that elpy-rpc--buffer-contents creates a temporary file. | py |
diff --git a/visidata/loaders/csv.py b/visidata/loaders/csv.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/csv.py
+++ b/visidata/loaders/csv.py
@@ -55,7 +55,7 @@ def load_csv(vs):
vs.columns = ArrayNamedColumns('\\n'.join(x) for x in zip(*headers))
else:
r = wrappedNext(rdr)
- ... | [csv bugfix] include first row in file even if options.header == 0 | py |
diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/dtypes/cast/test_promote.py
+++ b/pandas/tests/dtypes/cast/test_promote.py
@@ -504,6 +504,16 @@ def test_maybe_promote_bytes_with_any(bytes_dtype, any_numpy_dtype_reduced, box)... | TST: add test coverage for maybe_promote (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,9 +16,22 @@
# ------------------------------------------------------------------------#
import io
+import sys
from setuptools import find_packages, setup
+def check_python():
+ if not sys.version_info.major == ... | remove support for python 2 and less than buthon <I> | py |
diff --git a/ethereum/vm.py b/ethereum/vm.py
index <HASH>..<HASH> 100644
--- a/ethereum/vm.py
+++ b/ethereum/vm.py
@@ -637,7 +637,7 @@ def vm_execute(ext, msg, code):
# Get result
result, gas, data = ext.msg(call_msg)
if result == 0:
- stk.append(0)
... | Fixed issue where child tx failure wouldn't result in vm throwing TransactionFailed If you had something like this ```def foo(): x = self.bar() return(x) def bar(): ~invalid()``` Calling self.foo() in pyethereum would *not* result in a transaction failure but instead just return 0 <URL>. | py |
diff --git a/cleverhans_tutorials/tutorial_models.py b/cleverhans_tutorials/tutorial_models.py
index <HASH>..<HASH> 100644
--- a/cleverhans_tutorials/tutorial_models.py
+++ b/cleverhans_tutorials/tutorial_models.py
@@ -99,7 +99,7 @@ class Conv2D(Layer):
dummy_batch = tf.zeros(input_shape)
dummy_output... | correct batch_size in output_shape and delete a redundant method | py |
diff --git a/src/cobaya/remote_server.py b/src/cobaya/remote_server.py
index <HASH>..<HASH> 100644
--- a/src/cobaya/remote_server.py
+++ b/src/cobaya/remote_server.py
@@ -44,11 +44,12 @@ class RemoteServer(object):
responses['server_error'] = []
for task in data:
json_data = json.dumps(ta... | Small indentation change improves readability | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.